django-nested-inline
django-nested-inline copied to clipboard
Extra 0 not working with neated inlines.
trafficstars
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.
I have similar problem :(
+1
working on a fix for this....
https://github.com/s-block/django-nested-inline/pull/101
on further reflection - it appears that the fix proffered works only with add form. Not edit form.