From 918bcc80aed8714881bb191c15de6c9732dbebe0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Mon, 9 Jun 2014 11:17:35 +0200 Subject: [PATCH] allow last_update=None to indicate no update yet --- mygpo/podcasts/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mygpo/podcasts/models.py b/mygpo/podcasts/models.py index acbe73c2..4db847c3 100644 --- a/mygpo/podcasts/models.py +++ b/mygpo/podcasts/models.py @@ -56,8 +56,12 @@ class LanguageModel(models.Model): class LastUpdateModel(models.Model): + """ Model with timestamp of last update from its source """ - last_update = models.DateTimeField() + # date and time at which the model has last been updated from its source + # (eg a podcast feed). None means that the object has been created as a + # stub, without information from the source. + last_update = models.DateTimeField(null=True) class Meta: abstract = True -- 2.11.4.GIT