summaryrefslogtreecommitdiff
path: root/exam/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'exam/forms.py')
-rw-r--r--exam/forms.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/exam/forms.py b/exam/forms.py
new file mode 100644
index 0000000..bd5732e
--- /dev/null
+++ b/exam/forms.py
@@ -0,0 +1,15 @@
+from django import forms
+from exam.models import Profile
+
+class UserRegisterForm(forms.ModelForm):
+
+ first_name = forms.CharField(max_length=30)
+ last_name = forms.CharField(max_length=30)
+ roll_number = forms.CharField(max_length=30)
+ #email_address = forms.EmailField()
+ #password = forms.CharField(max_length=30, widget=forms.PasswordInput())
+
+ class Meta:
+ model = Profile
+ fields = ['first_name', 'last_name', 'roll_number']
+