diff options
author | Alban Gruin | 2017-09-07 19:54:03 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-07 19:54:03 +0200 |
commit | dc272aad09f15273a930345f33943580b2a8a1f3 (patch) | |
tree | 02542476548d62a62565dc45b18d9480f458c0af /models.py | |
parent | 1561cb829a48d49d36242db89fa4490144767065 (diff) |
Ajout d’un champ permettant de stocker la date de mise à jour du
calendrier celcat dans le modèle LastUpdate, ainsi que de quoi la lire
depuis le XML
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -51,6 +51,8 @@ class LastUpdate(models.Model): year = models.IntegerField(verbose_name="année") date = models.DateTimeField(verbose_name="date de mise à jour") + updated_at = models.DateTimeField(verbose_name="date de publication", null=True) + def __str__(self): return "{0}, semaine {1} de {2}".format(self.timetable.name, self.week, self.year) |