summaryrefslogtreecommitdiff
path: root/tbc
diff options
context:
space:
mode:
Diffstat (limited to 'tbc')
-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'