diff options
Diffstat (limited to 'management/commands')
-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)) |