aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-27 15:42:33 +0100
committerAlban Gruin2017-11-27 15:42:33 +0100
commit703cec5da11e7b859ef0172f5cc656bd8040a846 (patch)
tree7936b719cb1a4aa56fdd451e8f2f3e1ead378d82 /models.py
parentf729db8ed67f4540eb265e848bcd71add3ff074e (diff)
Relation source inverse
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 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