quiz/forms.py
author nishanth
Tue, 29 Jun 2010 11:23:10 +0530
changeset 58 672409e18e16
parent 12 81cd0140a0f2
permissions -rw-r--r--
removed the bounds on questions based on quiz_num. now there is no seperation between questions

from django import forms

from offline.quiz.models import Profile

class UserRegisterForm(forms.ModelForm):

    first_name = forms.CharField(max_length=30)
    last_name = forms.CharField(max_length=30)

    class Meta:
        model = Profile
        fields = ['first_name', 'last_name', 'profession', 'affiliated_to']