aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-07 23:12:57 +0200
committerAlban Gruin2017-09-07 23:12:57 +0200
commit5767fe2b49858dd8174193ffa8c2e8b3fda1fc6c (patch)
tree5176298f82739e146621f8661bdf4a01f9062b0e /models.py
parentdaa35602eeee6b15cea2b4e92a0556de2a1b4905 (diff)
Utilisation du modèle Year où nécessaire
Diffstat (limited to 'models.py')
-rw-r--r--models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models.py b/models.py
index f10f649..0fe9b87 100644
--- a/models.py
+++ b/models.py
@@ -45,7 +45,7 @@ class Timetable(models.Model):
slug = models.SlugField(max_length=64, unique=True, default="")
def __str__(self):
- return self.name
+ return self.year.name + " " + self.name
class Meta: