-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Labels
Description
Extra 0 not working in following example
from django.contrib import admin
from nested_inline.admin import NestedStackedInline, NestedModelAdmin
from example.models import *
class LevelTwoInline(NestedStackedInline):
model = LevelTwo
extra = 0
class LevelOneInline(NestedStackedInline):
model = LevelOne
extra = 0
inlines = [LevelTwoInline]
class TopLevelAdmin(NestedModelAdmin):
model = TopLevel
inlines = [LevelOneInline]
admin.site.register(TopLevel, TopLevelAdmin)
Please give me any solution.
knulledge