diff options
author | Alban Gruin | 2017-09-08 12:05:34 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-08 12:05:34 +0200 |
commit | 5e6049ca24670f41f9fa6335ea49c389c3133b86 (patch) | |
tree | c02c3c46ab21a8006c27abbd3993c3c8767e5414 /management/commands/listtimetables.py | |
parent | bfa42fa2fbd93336227b28a096250fcdd756ea78 (diff) |
Le tri du nom des emplois du temps est fait en fonction de l’année puis de la mention
Diffstat (limited to 'management/commands/listtimetables.py')
-rw-r--r-- | management/commands/listtimetables.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |