aboutsummaryrefslogtreecommitdiff
path: root/management/commands/listtimetables.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-27 17:23:11 +0100
committerAlban Gruin2017-11-27 17:23:11 +0100
commit8a71b0a55847e8783006b5a9514f64e0129578c9 (patch)
treeec8b6d6f014cd387c6de300942401ec43608aded /management/commands/listtimetables.py
parenta5b0d082a728b06e5e02f4d64632ac0b0a572aec (diff)
Fonction pour formater les emplois du temps à partir d’une source
Diffstat (limited to 'management/commands/listtimetables.py')
-rw-r--r--management/commands/listtimetables.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/management/commands/listtimetables.py b/management/commands/listtimetables.py
index 171fc2b..25f641b 100644
--- a/management/commands/listtimetables.py
+++ b/management/commands/listtimetables.py
@@ -29,8 +29,8 @@ class Command(BaseCommand):
sources = sources.order_by("id")
for source in sources:
- self.stdout.write("{0}\t: {1} (id: {2})".format(", ".join([str(timetable) for timetable in source.timetables.all()]),
- source, source.id))
+ self.stdout.write("{0}\t: {1} (id: {2})".format(source.formatted_timetables,
+ source, source.id))
self.stdout.write("")
self.stdout.write(self.style.SUCCESS("Done."))