quiz/forms.py
changeset 12 81cd0140a0f2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/quiz/forms.py	Tue Apr 20 15:31:21 2010 +0530
@@ -0,0 +1,13 @@
+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']
+