diff options
Diffstat (limited to 'exam/forms.py')
-rw-r--r-- | exam/forms.py | 15 |
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'] + |