From 61803263f0facb8720026943305bf67d5bfe01ea Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 11 Apr 2011 02:50:58 +0530 Subject: [PATCH] forgot boxes/admin.py --- itf/boxes/admin.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 itf/boxes/admin.py diff --git a/itf/boxes/admin.py b/itf/boxes/admin.py new file mode 100644 index 0000000..c7098bf --- /dev/null +++ b/itf/boxes/admin.py @@ -0,0 +1,24 @@ +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)