Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra 0 not working with neated inlines. #67

Open
nikksbagul opened this issue Jun 28, 2016 · 5 comments
Open

Extra 0 not working with neated inlines. #67

nikksbagul opened this issue Jun 28, 2016 · 5 comments

Comments

@nikksbagul
Copy link

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.

@ghost
Copy link

ghost commented Aug 22, 2016

I have similar problem :(

@scream4ik
Copy link

+1

@xela7
Copy link

xela7 commented Aug 14, 2019

working on a fix for this....

xela7 added a commit to xela7/django-nested-inline that referenced this issue Aug 14, 2019
@xela7
Copy link

xela7 commented Aug 15, 2019

#101

@xela7
Copy link

xela7 commented Aug 15, 2019

on further reflection - it appears that the fix proffered works only with add form. Not edit form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants