From 13934cdbc8437a6f2a40b18ff6be2ab221a92d05 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Thu, 6 Sep 2018 16:41:05 +0200 Subject: admin: tri des salles par ordre alphabétique par défaut Signed-off-by: Alban Gruin --- admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin.py b/admin.py index def84f0..928b63e 100644 --- a/admin.py +++ b/admin.py @@ -65,6 +65,8 @@ class GroupAdmin(admin.ModelAdmin): @admin.register(Room) class RoomAdmin(admin.ModelAdmin): prepopulated_fields = {"slug": ("name",)} + list_display = ("name",) + ordering = ("name",) @admin.register(Course) -- cgit v1.2.1