Skip to content

Extra 0 not working with neated inlines. #67

@nikksbagul

Description

@nikksbagul

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions