quiz/forms.py
author nishanth
Wed, 30 Jun 2010 10:29:38 +0530
changeset 71 1279f0094687
parent 12 81cd0140a0f2
permissions -rw-r--r--
now list of feedbacks and report are viewable only if there are feedbacks submitted.

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