quiz/forms.py
author nishanth
Fri, 02 Jul 2010 14:26:41 +0530
changeset 88 281c4bcf848f
parent 12 81cd0140a0f2
permissions -rw-r--r--
now editing question is complete.
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