author | nishanth |
Tue, 20 Apr 2010 23:12:15 +0530 | |
changeset 22 | fe197c0c9903 |
parent 12 | 81cd0140a0f2 |
permissions | -rw-r--r-- |
12 | 1 |
from django import forms |
2 |
||
3 |
from offline.quiz.models import Profile |
|
4 |
||
5 |
class UserRegisterForm(forms.ModelForm): |
|
6 |
||
7 |
first_name = forms.CharField(max_length=30) |
|
8 |
last_name = forms.CharField(max_length=30) |
|
9 |
||
10 |
class Meta: |
|
11 |
model = Profile |
|
12 |
fields = ['first_name', 'last_name', 'profession', 'affiliated_to'] |
|
13 |