[permission] Permission admin view

This commit is contained in:
Benjamin Graillot 2019-09-18 16:40:21 +02:00
parent 2a4ab09753
commit d826dc9d20
1 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
from django.contrib import admin 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')