mirror of https://gitlab.crans.org/bde/nk20
23 lines
542 B
Python
23 lines
542 B
Python
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
|
|
# SPDX-License-Identifier: GPL-3.0-or-lateré
|
|
|
|
from django.contrib import admin
|
|
|
|
from .models import Permission, PermissionMask
|
|
|
|
|
|
@admin.register(PermissionMask)
|
|
class PermissionMaskAdmin(admin.ModelAdmin):
|
|
"""
|
|
Admin customisation for Permission
|
|
"""
|
|
list_display = ('rank', 'description')
|
|
|
|
|
|
@admin.register(Permission)
|
|
class PermissionAdmin(admin.ModelAdmin):
|
|
"""
|
|
Admin customisation for Permission
|
|
"""
|
|
list_display = ('type', 'model', 'field', 'description')
|