From abaa63de655d8d0a0c62224c7cca9318f39d436f Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sat, 10 Feb 2018 15:14:15 +0100 Subject: Plus d’appel à iterator() --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index b762215..538d64c 100644 --- a/models.py +++ b/models.py @@ -59,7 +59,7 @@ class Source(models.Model): @property def formatted_timetables(self): return ", ".join([str(timetable) for timetable in - self.timetables.iterator()]) + self.timetables.all()]) class Meta: verbose_name = "source d’emploi du temps" -- cgit v1.2.1