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 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"