From 5e6049ca24670f41f9fa6335ea49c389c3133b86 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Fri, 8 Sep 2017 12:05:34 +0200 Subject: Le tri du nom des emplois du temps est fait en fonction de l’année puis de la mention --- management/commands/listtimetables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'management/commands') diff --git a/management/commands/listtimetables.py b/management/commands/listtimetables.py index a82db23..6df7ba5 100644 --- a/management/commands/listtimetables.py +++ b/management/commands/listtimetables.py @@ -28,7 +28,7 @@ class Command(BaseCommand): if options["order_by_id"]: timetables = timetables.order_by("id") else: - timetables = timetables.order_by("name") + timetables = timetables.order_by("year__name", "name") for timetable in timetables: self.stdout.write("{0} (id: {1})".format(timetable, timetable.id)) -- cgit v1.2.1