aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-24 15:50:58 +0200
committerAlban Gruin2017-09-24 15:50:58 +0200
commit77748ec01d1ef59d8436597a9b52675b309e1c4d (patch)
tree9bd9aa7be357f2846e1b4f075fd4e424d382fad3 /models.py
parent0949b09c0040a66ffd1869da23a9425da891d56f (diff)
Ajout du champ last_update dans le modèle des cours
Diffstat (limited to 'models.py')
-rw-r--r--models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/models.py b/models.py
index f223317..4a25b01 100644
--- a/models.py
+++ b/models.py
@@ -161,6 +161,8 @@ class Course(models.Model):
begin = models.DateTimeField(verbose_name="début du cours", db_index=True)
end = models.DateTimeField(verbose_name="fin du cours")
+ last_update = models.DateTimeField(verbose_name="dernière mise à jour")
+
def __str__(self):
return self.name