From 88b1db7c5f4d3b4bbaa70bf6c87d9e3b93e94c7c Mon Sep 17 00:00:00 2001 From: Nishanth Amuluru Date: Sat, 8 Jan 2011 01:45:34 +0530 Subject: Used the new field in forms --- profile/forms.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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'] -- cgit