it/itf/app/admin.py
2011-04-04 07:05:25 +05:30

19 lines
368 B
Python

'''
from django.contrib import admin
from models import ModelBox, ModelSort, ModelExtraButton
class ButtonsInline(admin.StackedInline):
model = ModelExtraButton
extra = 2
class ModelBoxAdmin(admin.ModelAdmin):
inlines = [ButtonsInline]
admin.site.register(ModelBox, ModelBoxAdmin)
admin.site.register(ModelSort)
admin.site.register(ModelExtraButton)
'''