Used the new field in forms
authorNishanth Amuluru <nishanth@fossee.in>
Sat, 08 Jan 2011 01:45:34 +0530
changeset 300 ce5f3cdbd545
parent 299 8f50caa63cd1
child 301 e346fd52baff
Used the new field in forms
profile/forms.py
--- a/profile/forms.py	Sat Jan 08 01:44:49 2011 +0530
+++ b/profile/forms.py	Sat Jan 08 01:45:34 2011 +0530
@@ -14,6 +14,11 @@
     backend, this adds aboutme, dob, gender, address, phonenum to the default 
     django-registration RegistrationForm"""
 
+    full_name = forms.CharField(required=True, max_length=50, 
+                                label="Name as on your bank account", 
+                                help_text="Any DD/Cheque will be issued on \
+                                           this name")
+
     aboutme = forms.CharField(required=True, max_length=1000, label=u"About Me",
                               help_text="A write up about yourself to aid the\
                               reviewer in judging your eligibility for a task.\
@@ -85,4 +90,4 @@
 
     class Meta:
         model = Profile
-        fields = ['aboutme', 'gender', 'dob', 'address', 'phonenum']
+        fields = ['full_name', 'aboutme', 'gender', 'dob', 'address', 'phonenum']