it/itf/insidepages/admin.py
2011-08-23 03:34:40 +05:30

17 lines
392 B
Python

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)