taskapp/models.py
changeset 12 a93eebabfeb1
parent 10 bf0cbea1bd12
child 18 a39549bd5b08
--- a/taskapp/models.py	Thu Feb 04 22:06:22 2010 +0530
+++ b/taskapp/models.py	Thu Feb 04 22:12:48 2010 +0530
@@ -24,12 +24,12 @@
 class Profile(models.Model):
 	
     user = models.ForeignKey(User, unique = True)
-    aboutme = models.TextField()
-    dob = models.DateField()
+    dob = models.DateField(help_text = "YYYY-MM-DD")
     gender = models.CharField(max_length = 1, choices = GENDER_CHOICES)
-    rights = models.CharField(max_length = 2, choices = RIGHTS_CHOICES)
-    credits = models.PositiveSmallIntegerField()
+    rights = models.CharField(max_length = 2, choices = RIGHTS_CHOICES, default = u"CT")
+    credits = models.PositiveSmallIntegerField(default = 0)
     
+    aboutme = models.TextField(blank = True)
     foss_comm = models.CharField(max_length = 80, blank = True)
     phonenum = models.CharField(max_length = 15, blank = True)
     homepage = models.URLField(blank = True)
@@ -63,6 +63,8 @@
     
     creation_datetime = models.DateTimeField()
     
+    #is_claimable = models.BooleanField()
+    
     ## not yet decided if attribs after this are to be included
     ## tasktype = "" ## "bugfix"/"enhancement"
     ## priority = "" ## "very urgent"/"urgent"