aboutsummaryrefslogtreecommitdiff
path: root/admin.py
diff options
context:
space:
mode:
authorAlban Gruin2018-09-06 16:41:05 +0200
committerAlban Gruin2018-09-06 21:03:49 +0200
commit13934cdbc8437a6f2a40b18ff6be2ab221a92d05 (patch)
tree1b7ac65fe5fea194abcfe7ab7189423cfa0feffe /admin.py
parent066391b376649214266f48ab95a021cb98b9dfa2 (diff)
admin: tri des salles par ordre alphabétique par défaut
Signed-off-by: Alban Gruin <alban at pa1ch dot fr>
Diffstat (limited to 'admin.py')
-rw-r--r--admin.py2
1 files changed, 2 insertions, 0 deletions
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)