Implements permission masks
This commit is contained in:
parent
d083894e9b
commit
95315cdbe2
15 changed files with 133 additions and 78 deletions
|
|
@ -3,7 +3,15 @@
|
|||
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import Permission
|
||||
from .models import Permission, PermissionMask
|
||||
|
||||
|
||||
@admin.register(PermissionMask)
|
||||
class PermissionMaskAdmin(admin.ModelAdmin):
|
||||
"""
|
||||
Admin customisation for Permission
|
||||
"""
|
||||
list_display = ('rank', 'description')
|
||||
|
||||
|
||||
@admin.register(Permission)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue