it/itf/boxes/admin.py

25 lines
727 B
Python
Raw Normal View History

2011-04-10 21:20:58 +00:00
from django.contrib import admin
from models import ModelExtra, ModelSort, DialogButton, StaticDownloadButton, ModelDownloadButton, ExtraButton, PanelBoxes, StaticBox, ModelsBox, Panel
'''
class ButtonsInline(admin.StackedInline):
model = ModelExtraButton
extra = 2
class ModelBoxAdmin(admin.ModelAdmin):
inlines = [ButtonsInline]
'''
#admin.site.register(ModelBox, ModelBoxAdmin)
admin.site.register(ModelExtra)
admin.site.register(ModelSort)
admin.site.register(DialogButton)
admin.site.register(StaticDownloadButton)
admin.site.register(ModelDownloadButton)
admin.site.register(ExtraButton)
admin.site.register(PanelBoxes)
admin.site.register(StaticBox)
admin.site.register(ModelsBox)
admin.site.register(Panel)