diff options
author | prathamesh | 2016-09-30 15:21:39 +0530 |
---|---|---|
committer | prathamesh | 2016-09-30 15:21:39 +0530 |
commit | c5c3c7b6c4794d960ead6137d251cd9b8f423aa4 (patch) | |
tree | 8b7b0f8c57491998feee1c12e1cefce36b710075 /tbc/models.py | |
parent | b38a43b6f410bd440d8b573d1cf4e6149de2e99f (diff) | |
download | Python-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.py | 4 |
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' |