1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 09:58:23 +02:00

💄 Improve Django Admin

This commit is contained in:
Yohann D'ANELLO
2020-08-01 15:13:29 +02:00
parent 59bfdbbfc7
commit b6453ce03d
7 changed files with 180 additions and 85 deletions

View File

@ -20,7 +20,9 @@ class PermissionAdmin(admin.ModelAdmin):
"""
Admin customisation for Permission
"""
list_display = ('type', 'model', 'field', 'mask', 'description', )
list_display = ('description', 'type', 'model', 'field', 'mask', )
list_filter = ('type', 'mask', 'model',)
search_fields = ('description', 'field',)
@admin.register(Role, site=admin_site)