quiz/forms.py
author nishanth
Wed, 21 Apr 2010 13:20:42 +0530
changeset 31 27aa6ee92aca
parent 12 81cd0140a0f2
permissions -rw-r--r--
we shall not track db files since they are changed often. we shall maintain a .bak file which is db file and rename it appropriately before we start using the app.

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