summaryrefslogtreecommitdiff
path: root/exam/forms.py
blob: 164e3347998162071420e96d6fb009fd3de68977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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']