django-nested-inline icon indicating copy to clipboard operation
django-nested-inline copied to clipboard

extra = 0 causes impossibility to 'add another object'

Open fabiocaccamo opened this issue 10 years ago • 6 comments
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.

fabiocaccamo avatar Mar 10 '15 18:03 fabiocaccamo

+1

ktosiek avatar Jan 26 '16 12:01 ktosiek

Bump! +1

NoxWings avatar Feb 23 '16 17:02 NoxWings

+1

tuomas2 avatar May 05 '16 08:05 tuomas2

This solved my problem on this. => http://django-nested-admin.readthedocs.io/

tuomas2 avatar May 06 '16 05:05 tuomas2

+1 @tuomas2 What was your fix? @fabiocaccamo was this ever resolved?

gjdanis avatar May 28 '16 16:05 gjdanis

My solution was to switch to another similar but better package, i.e. http://django-nested-admin.readthedocs.io/.

tuomas2 avatar May 28 '16 20:05 tuomas2