Source

django-extauth / extauth / auth / admin.py

1
2
3
4
5
6
7
8
9
from extauth.auth.models import Role
from django.contrib import admin

class RoleAdmin(admin.ModelAdmin):
    search_fields = ('model','role')
    ordering = ('model','role')
    filter_horizontal = ('permissions',)

admin.site.register(Role, RoleAdmin)