diff options
author | Alban Gruin | 2017-11-16 11:20:59 +0100 |
---|---|---|
committer | Alban Gruin | 2017-11-16 11:20:59 +0100 |
commit | 0c2937bab77280beaabe7d53a77c848848845950 (patch) | |
tree | eb9beaa5f64681d40955a4d15dd3b439f3606e83 /models.py | |
parent | 5c2bc37ed5d8353ea0ee1d9e5f852a1f39ac235f (diff) |
Par défaut, la date de dernière mise à jour des emplois du temps est
la date actuelle
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -57,7 +57,8 @@ class Timetable(SlugModel): url = models.URLField(max_length=255, verbose_name="URL") slug = models.SlugField(max_length=64, default="") - last_update_date = models.DateTimeField(verbose_name="dernière mise à jour Celcat", null=True) + last_update_date = models.DateTimeField(verbose_name="dernière mise à jour Celcat", + null=True, default=timezone.now) def __str__(self): return self.year.name + " " + self.name |