summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2011-01-18 17:34:29 +0530
committerMadhusudan.C.S2011-01-18 17:34:29 +0530
commitaf9fd7d7b6885618dc9587ac3e7247d116bd70d9 (patch)
tree24b935d95c5695e0ecf18c47561167e693f0dcbb
parentefbee279860da496133fa809d86d599b800b3639 (diff)
downloadpytask-af9fd7d7b6885618dc9587ac3e7247d116bd70d9.tar.gz
pytask-af9fd7d7b6885618dc9587ac3e7247d116bd70d9.tar.bz2
pytask-af9fd7d7b6885618dc9587ac3e7247d116bd70d9.zip
Make changes to the code style so that it is consistent across the code base.
-rw-r--r--pytask/profile/forms.py14
-rwxr-xr-xpytask/profile/models.py3
2 files changed, 11 insertions, 6 deletions
diff --git a/pytask/profile/forms.py b/pytask/profile/forms.py
index 1ad57b2..2a82db3 100644
--- a/pytask/profile/forms.py
+++ b/pytask/profile/forms.py
@@ -26,12 +26,16 @@ class CustomRegistrationForm(RegistrationFormUniqueEmail):
)
- dob = forms.DateField(help_text = "YYYY-MM-DD", required=True, label=u'date of birth')
- gender = forms.ChoiceField(choices = GENDER_CHOICES, required=True, label=u'gender')
+ dob = forms.DateField(help_text = "YYYY-MM-DD", required=True,
+ label=u'Date of birth')
+
+ gender = forms.ChoiceField(choices = GENDER_CHOICES,
+ required=True, label=u'Gender')
+
+ address = forms.CharField(
+ required=True, max_length=200, widget=forms.Textarea,
+ help_text="This information will be used while sending DD/Cheque")
- address = forms.CharField(required=True, max_length=200,
- widget=forms.Textarea, help_text="This \
- information will be used while sending DD/Cheque")
phonenum = forms.CharField(required=True, max_length=10,
label="Phone Number")
diff --git a/pytask/profile/models.py b/pytask/profile/models.py
index f92b5e2..451dfc6 100755
--- a/pytask/profile/models.py
+++ b/pytask/profile/models.py
@@ -46,7 +46,8 @@ class Profile(models.Model):
dob = models.DateField(verbose_name=u"Date of Birth",
help_text="YYYY-MM-DD")
- gender = models.CharField(max_length=24, choices=GENDER_CHOICES)
+ gender = models.CharField(verbose_name=u'Gender',
+ max_length=24, choices=GENDER_CHOICES)
address = models.TextField(
blank=False, help_text="This information will be used to send "