django-nested-inline
django-nested-inline copied to clipboard
extra = 0 causes impossibility to 'add another object'
trafficstars
This is my situation and it works fine, but if I set extra = 0 for LevelOneInline in the admin there is no row with an 'Add another LevelTwo object' button:
class LevelTwoInline(NestedStackedInline):
model = LevelTwo
extra = 0
inlines = [LevelThreeInline]
class LevelOneInline(NestedStackedInline):
model = LevelOne
extra = 1
inlines = [LevelTwoInline]
class TopLevelAdmin(NestedModelAdmin):
model = TopLevel
inlines = [LevelOneInline]
Thanks for this great lib.
+1
Bump! +1
+1
This solved my problem on this. => http://django-nested-admin.readthedocs.io/
+1 @tuomas2 What was your fix? @fabiocaccamo was this ever resolved?
My solution was to switch to another similar but better package, i.e. http://django-nested-admin.readthedocs.io/.