diff options
author | Alban Gruin | 2017-10-01 16:44:53 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-01 16:44:53 +0200 |
commit | f0c61f1a3a26f8c76f43b21f7860d83041b7fe89 (patch) | |
tree | c7b6cb49c465dab6d72c90542d03e61b8b5c49e2 /models.py | |
parent | e004bf8b70d1f8142e63748ea737e8c0ac8fcfda (diff) |
Ajout d’une colonne pour stocker la date de dernière mise à jour
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -54,6 +54,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) + def __str__(self): return self.year.name + " " + self.name |