it/itf/insidepages/admin.py

17 lines
392 B
Python
Raw Normal View History

2011-08-22 22:04:40 +00:00
from django.contrib import admin
from models import *
# from forms import ArticleForm
class TabsInline(admin.StackedInline):
model = ModuleTab
extra = 4
class ModuleAdmin(admin.ModelAdmin):
inlines = [TabsInline]
# list_display = ('name', 'order',)
# list_editable = ['order']
admin.site.register(Module, ModuleAdmin)
#admin.site.register(SliderBox, SliderBoxAdmin)