added null=true for datetime
authorNishanth Amuluru <nishanth@fossee.in>
Sat, 08 Jan 2011 23:12:01 +0530
changeset 104 2e344786ce4f
parent 103 e7302ae73e53
child 105 94dd9d25d52a
added null=true for datetime
pytask/taskapp/models.py
--- a/pytask/taskapp/models.py	Sat Jan 08 23:04:55 2011 +0530
+++ b/pytask/taskapp/models.py	Sat Jan 08 23:12:01 2011 +0530
@@ -47,7 +47,7 @@
                                             related_name = "%(class)s_selected_users")
     
     creation_datetime = models.DateTimeField()
-    approval_datetime = models.DateTimeField(blank = True)
+    approval_datetime = models.DateTimeField(blank = True, null = True)
     
     def __unicode__(self):
         return unicode(self.title)
@@ -144,6 +144,6 @@
 
     status = models.CharField(max_length = 2, choices = TB_STATUS_CHOICES, default = "UP")
     creation_datetime = models.DateTimeField()
-    approval_datetime = models.DateTimeField(blank = True)
+    approval_datetime = models.DateTimeField(blank = True, null = True)
 
 tagging.register(Task)