From af9fd7d7b6885618dc9587ac3e7247d116bd70d9 Mon Sep 17 00:00:00 2001 From: Madhusudan.C.S Date: Tue, 18 Jan 2011 17:34:29 +0530 Subject: Make changes to the code style so that it is consistent across the code base. --- pytask/profile/forms.py | 14 +++++++++----- pytask/profile/models.py | 3 ++- 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 " -- cgit