2011-04-04 01:35:25 +00:00
|
|
|
'''
|
2011-03-06 12:49:58 +00:00
|
|
|
from django.contrib import admin
|
2011-03-18 04:49:27 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2011-03-18 04:49:27 +00:00
|
|
|
class ModelBoxAdmin(admin.ModelAdmin):
|
2011-03-06 12:49:58 +00:00
|
|
|
inlines = [ButtonsInline]
|
|
|
|
|
|
|
|
|
2011-03-18 04:49:27 +00:00
|
|
|
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
|
|
|
'''
|