summaryrefslogtreecommitdiff
path: root/tbc/models.py
diff options
context:
space:
mode:
authorprathamesh2016-09-30 15:21:39 +0530
committerprathamesh2016-09-30 15:21:39 +0530
commitc5c3c7b6c4794d960ead6137d251cd9b8f423aa4 (patch)
tree8b7b0f8c57491998feee1c12e1cefce36b710075 /tbc/models.py
parentb38a43b6f410bd440d8b573d1cf4e6149de2e99f (diff)
downloadPython-TBC-Interface-c5c3c7b6c4794d960ead6137d251cd9b8f423aa4.tar.gz
Python-TBC-Interface-c5c3c7b6c4794d960ead6137d251cd9b8f423aa4.tar.bz2
Python-TBC-Interface-c5c3c7b6c4794d960ead6137d251cd9b8f423aa4.zip
Removed auto updated of dates.
We need to manually update dates for few books so removed auto update.
Diffstat (limited to 'tbc/models.py')
-rw-r--r--tbc/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tbc/models.py b/tbc/models.py
index b3bde93..7deb31c 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(auto_now_add=True)
- end_time = models.DateField(auto_now=True)
+ start_time = models.DateField(null=True, default=None)
+ end_time = models.DateField(null=True, default=None)
tags = TaggableManager()
def __unicode__(self):
name = self.title or 'Book'