it/itf/app/admin.py

19 lines
368 B
Python
Raw Permalink Normal View History

2011-04-04 01:35:25 +00:00
'''
2011-03-06 12:49:58 +00:00
from django.contrib import admin
from models import ModelBox, ModelSort, ModelExtraButton
2011-03-06 12:49:58 +00:00
2011-04-04 01:35:25 +00:00
2011-03-06 12:49:58 +00:00
class ButtonsInline(admin.StackedInline):
model = ModelExtraButton
extra = 2
class ModelBoxAdmin(admin.ModelAdmin):
2011-03-06 12:49:58 +00:00
inlines = [ButtonsInline]
admin.site.register(ModelBox, ModelBoxAdmin)
2011-03-06 12:49:58 +00:00
admin.site.register(ModelSort)
admin.site.register(ModelExtraButton)
2011-04-04 01:35:25 +00:00
'''