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)
|