8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-24 20:33:11 +00:00

Default ordering

This commit is contained in:
Alexandre Iooss 2019-03-01 10:21:28 +01:00
parent 040b15dcd1
commit fe2a76ed96

View file

@ -87,6 +87,7 @@ class LdapServiceUserGroupAdmin(admin.ModelAdmin):
class SchoolAdmin(VersionAdmin, ModelUserAdmin): class SchoolAdmin(VersionAdmin, ModelUserAdmin):
"""Administration, gestion des écoles""" """Administration, gestion des écoles"""
list_display = ('name',) list_display = ('name',)
ordering = ('name',)
class ListRightAdmin(VersionAdmin): class ListRightAdmin(VersionAdmin):
@ -98,6 +99,7 @@ class ListRightAdmin(VersionAdmin):
class ListShellAdmin(VersionAdmin, ModelUserAdmin): class ListShellAdmin(VersionAdmin, ModelUserAdmin):
"""Gestion de la liste des shells coté admin""" """Gestion de la liste des shells coté admin"""
list_display = ('shell',) list_display = ('shell',)
ordering = ('shell',)
class RequestAdmin(admin.ModelAdmin): class RequestAdmin(admin.ModelAdmin):