quiz/forms.py
author nishanth
Wed, 05 May 2010 09:57:33 +0530
changeset 56 d8d4387b3281
parent 12 81cd0140a0f2
permissions -rw-r--r--
made change in show report as per requirement and improved the quiz intro

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