Make changes to the code style so that it is consistent across the code base.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Tue, 18 Jan 2011 17:34:29 +0530
changeset 463 c7c595c0bed3
parent 462 f333bb6a79c7
child 464 6f5a60ce7d25
Make changes to the code style so that it is consistent across the code base.
pytask/profile/forms.py
pytask/profile/models.py
--- a/pytask/profile/forms.py	Tue Jan 18 15:36:07 2011 +0530
+++ b/pytask/profile/forms.py	Tue Jan 18 17:34:29 2011 +0530
@@ -26,12 +26,16 @@
                              )
 
     
-    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')
 
-    address = forms.CharField(required=True, max_length=200,
-                              widget=forms.Textarea, help_text="This \
-                              information will be used while sending DD/Cheque")
+    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")
+
     phonenum = forms.CharField(required=True, max_length=10, 
                                label="Phone Number")
 
--- a/pytask/profile/models.py	Tue Jan 18 15:36:07 2011 +0530
+++ b/pytask/profile/models.py	Tue Jan 18 17:34:29 2011 +0530
@@ -46,7 +46,8 @@
     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 "