Commit 014d6f17 authored by Lukas Burgey's avatar Lukas Burgey

Display the correct models in the admin

parent 3920faf4
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import Group as AuthGroup
from polymorphic.admin import PolymorphicParentModelAdmin, PolymorphicChildModelAdmin
......@@ -27,9 +28,13 @@ class ClientAdmin(UserAdmin):
list_filter = (TypeFilter,)
admin.site.unregister(AuthGroup)
@admin.register(Group)
class GroupAdmin(PolymorphicChildModelAdmin):
base_model = Group # Explicitly set here!
show_in_index = True # makes child model admin visible in main admin site
# define custom features here
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment