From fe2a76ed96ed109d9de6d4b5aca5df84452406aa Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Fri, 1 Mar 2019 10:21:28 +0100 Subject: [PATCH] Default ordering --- users/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/users/admin.py b/users/admin.py index 982db208..4e0c38ad 100644 --- a/users/admin.py +++ b/users/admin.py @@ -87,6 +87,7 @@ class LdapServiceUserGroupAdmin(admin.ModelAdmin): class SchoolAdmin(VersionAdmin, ModelUserAdmin): """Administration, gestion des écoles""" list_display = ('name',) + ordering = ('name',) class ListRightAdmin(VersionAdmin): @@ -98,6 +99,7 @@ class ListRightAdmin(VersionAdmin): class ListShellAdmin(VersionAdmin, ModelUserAdmin): """Gestion de la liste des shells coté admin""" list_display = ('shell',) + ordering = ('shell',) class RequestAdmin(admin.ModelAdmin):