Skip to content

extra = 0 causes impossibility to 'add another object' #28

@fabiocaccamo

Description

@fabiocaccamo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions