aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2017-09-09 21:07:09 +0200
committerAlban Gruin2017-09-09 21:07:09 +0200
commitdb9523587a8abc955a166ffb3636601164a792ab (patch)
treeaf8b875a259daa58ca1101a2e98797ed413e66a8
parentafa67de3f2b8cb01d4565ad9dd438155b4023f09 (diff)
Tri du modèle Timetable
-rw-r--r--admin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/admin.py b/admin.py
index 48930e0..fff2c19 100644
--- a/admin.py
+++ b/admin.py
@@ -29,6 +29,7 @@ class TimetableAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
list_display = ("name", "year", "url",)
list_filter = ("year__name",)
+ ordering = ("year", "name",)
@admin.register(LastUpdate)