diff options
Diffstat (limited to 'models.py')
-rw-r--r-- | models.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -56,6 +56,10 @@ class Source(models.Model): def __str__(self): return self.url + @property + def formatted_timetables(self): + return ", ".join([str(timetable) for timetable in self.timetables.iterator()]) + class Meta: verbose_name = "source d’emploi du temps" |