quiz/forms.py
author nishanth
Thu, 01 Jul 2010 16:44:17 +0530
changeset 84 08af9e4ada78
parent 12 81cd0140a0f2
permissions -rw-r--r--
modified the link in templates to the correct one and fixed a typo in view

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