quiz/forms.py
author nishanth
Tue, 20 Apr 2010 23:12:15 +0530
changeset 22 fe197c0c9903
parent 12 81cd0140a0f2
permissions -rw-r--r--
modified the questionbank model and changed in seed_db accordingly
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
     1
from django import forms
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
     2
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
     3
from offline.quiz.models import Profile
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
     4
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
     5
class UserRegisterForm(forms.ModelForm):
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
     6
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
     7
    first_name = forms.CharField(max_length=30)
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
     8
    last_name = forms.CharField(max_length=30)
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
     9
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
    10
    class Meta:
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
    11
        model = Profile
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
    12
        fields = ['first_name', 'last_name', 'profession', 'affiliated_to']
81cd0140a0f2 created the register user functionality.
nishanth
parents:
diff changeset
    13