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

16 lines
332 B
Python
Raw Normal View History

2014-05-08 16:59:35 +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 Jabber
class JabberRoleAdmin(RoleAdmin):
model = Jabber
name = 'jabber'
url_name = 'jabber'
insertattr(get_user_model(), 'roles', JabberRoleAdmin)