quiz/forms.py
author nishanth
Fri, 02 Jul 2010 14:12:25 +0530
changeset 87 e81b105b1128
parent 12 81cd0140a0f2
permissions -rw-r--r--
found easier way to get things done. so removed all the junk code.

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']