1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-23 07:52:23 +00:00

[permission] Permission admin view

This commit is contained in:
Benjamin Graillot 2019-09-18 16:40:21 +02:00
parent 2a4ab09753
commit d826dc9d20

View File

@ -1,3 +1,11 @@
from django.contrib import admin
# Register your models here.
from .models import Permission
@admin.register(Permission)
class PermissionAdmin(admin.ModelAdmin):
"""
Admin customisation for Permission
"""
list_display = ('type', 'model', 'field', 'permission')