summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrupti Rajesh Kini2016-09-27 16:42:12 +0530
committerGitHub2016-09-27 16:42:12 +0530
commitb38a43b6f410bd440d8b573d1cf4e6149de2e99f (patch)
treea265febbcf534ed6a865e1bff9b3f44c4268df12
parentb32b399ab5691d7b24bf0f7ca83affd64d6ee1e7 (diff)
downloadPython-TBC-Interface-b38a43b6f410bd440d8b573d1cf4e6149de2e99f.tar.gz
Python-TBC-Interface-b38a43b6f410bd440d8b573d1cf4e6149de2e99f.tar.bz2
Python-TBC-Interface-b38a43b6f410bd440d8b573d1cf4e6149de2e99f.zip
updated starttime and endtime
-rw-r--r--tbc/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tbc/models.py b/tbc/models.py
index 7deb31c..b3bde93 100644
--- a/tbc/models.py
+++ b/tbc/models.py
@@ -107,8 +107,8 @@ class Book(models.Model):
contributor = models.ForeignKey(Profile)
reviewer = models.ForeignKey(Reviewer)
approved = models.BooleanField(default=False)
- start_time = models.DateField(null=True, default=None)
- end_time = models.DateField(null=True, default=None)
+ start_time = models.DateField(auto_now_add=True)
+ end_time = models.DateField(auto_now=True)
tags = TaggableManager()
def __unicode__(self):
name = self.title or 'Book'