aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-09 21:07:09 +0200
committerAlban Gruin2017-09-12 21:40:15 +0200
commit445bfdcde5309645ac4d6f5c1d565530e6dbfeed (patch)
treefe5c383c561af1df75df74e277b4dead2750edf2 /admin.py
parentc0f19d41c8dfb6d499defcfc63c273bbc8918584 (diff)
Tri du modèle Timetable
Diffstat (limited to 'admin.py')
-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)