diff options
author | Alban Gruin | 2017-11-27 15:42:33 +0100 |
---|---|---|
committer | Alban Gruin | 2017-11-27 15:42:33 +0100 |
commit | 703cec5da11e7b859ef0172f5cc656bd8040a846 (patch) | |
tree | 7936b719cb1a4aa56fdd451e8f2f3e1ead378d82 /models.py | |
parent | f729db8ed67f4540eb265e848bcd71add3ff074e (diff) |
Relation source inverse
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |