it/itf/app/admin.py
2011-10-08 03:03:05 -04:00

19 lines
368 B
Python
Executable File

'''
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)
'''