aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models.py b/models.py
index c55bbae..eba8f1c 100644
--- a/models.py
+++ b/models.py
@@ -68,7 +68,7 @@ class Timetable(SlugModel):
name = models.CharField(max_length=64, verbose_name="nom")
slug = models.SlugField(max_length=64, default="")
source = models.ForeignKey(Source, on_delete=models.CASCADE,
- verbose_name="source")
+ verbose_name="source", related_name="timetables")
def __str__(self):
return self.year.name + " " + self.name