testappproj/testapp/forms.py
changeset 3 34d0c21e3352
parent 2 654c583fd78e
child 4 4d5422e5a45d
--- a/testappproj/testapp/forms.py	Mon May 31 19:18:57 2010 +0530
+++ b/testappproj/testapp/forms.py	Mon Jun 14 01:00:59 2010 +0530
@@ -42,16 +42,18 @@
 
 class Test_UserForm(RegistrationForm):
 
-  fullname = forms.CharField(widget=forms.TextInput(attrs=attrs_dict))
+  Fullname = forms.CharField(widget=forms.TextInput(attrs=attrs_dict))
+  Address =  forms.CharField(widget=forms.TextInput(attrs=attrs_dict))
+  
   class Meta:
-        exclude = ('special_user',)
+        exclude = ('special_user','exam_done')
 
 
   def save(self, profile_callback=None):
     new_user = RegistrationProfile.objects.create_inactive_user(username=self.cleaned_data['username'],
                                                                 password=self.cleaned_data['password1'],
                                                                 email=self.cleaned_data['email'])
-    new_profile = Test_User(user=new_user, fullname=self.cleaned_data[fullname])
+    new_profile = Test_User(user=new_user, fullname=self.cleaned_data['Fullname'],address=self.cleaned_data['Address'])
     new_profile.save()
     return new_user