summaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
authorNishanth Amuluru2011-01-08 01:45:34 +0530
committerNishanth Amuluru2011-01-08 01:45:34 +0530
commit88b1db7c5f4d3b4bbaa70bf6c87d9e3b93e94c7c (patch)
tree041377bbccfb6d864ac014a5dd91767dc8d8018e /profile
parentd8806ddedc5da20a865c6fa0f68defd32df8e2c8 (diff)
downloadpytask-88b1db7c5f4d3b4bbaa70bf6c87d9e3b93e94c7c.tar.gz
pytask-88b1db7c5f4d3b4bbaa70bf6c87d9e3b93e94c7c.tar.bz2
pytask-88b1db7c5f4d3b4bbaa70bf6c87d9e3b93e94c7c.zip
Used the new field in forms
Diffstat (limited to 'profile')
-rw-r--r--profile/forms.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/profile/forms.py b/profile/forms.py
index e1662b8..649be82 100644
--- a/profile/forms.py
+++ b/profile/forms.py
@@ -14,6 +14,11 @@ class CustomRegistrationForm(RegistrationFormUniqueEmail):
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 EditProfileForm(forms.ModelForm):
class Meta:
model = Profile
- fields = ['aboutme', 'gender', 'dob', 'address', 'phonenum']
+ fields = ['full_name', 'aboutme', 'gender', 'dob', 'address', 'phonenum']