gva/gnuviechadmin/osusers/admin.py

25 lines
409 B
Python
Raw Normal View History

2014-05-24 21:28:33 +02:00
from django.contrib import admin
2014-05-24 21:53:49 +02:00
from .models import (
AdditionalGroup,
Group,
Shadow,
User,
)
class AdditionalGroupInline(admin.TabularInline):
model = AdditionalGroup
class ShadowInline(admin.TabularInline):
model = Shadow
class UserAdmin(admin.ModelAdmin):
inlines = [AdditionalGroupInline, ShadowInline]
admin.site.register(Group)
admin.site.register(User, UserAdmin)