blob: bd5732e36ce1aa4acabc63e78e94a67f83ddb767 (
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']
|