django-orchestra-test/orchestra/apps/users/roles/posix/admin.py

16 lines
326 B
Python
Raw Normal View History

2014-09-30 10:20:23 +00:00
from django.contrib.auth import get_user_model
from orchestra.admin.utils import insertattr
from orchestra.apps.users.roles.admin import RoleAdmin
from .models import POSIX
class POSIXRoleAdmin(RoleAdmin):
model = POSIX
name = 'posix'
url_name = 'posix'
insertattr(get_user_model(), 'roles', POSIXRoleAdmin)