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

Add more link of a nestedline add inlines of previous form not on the corresponding form #12

Open
maksudc opened this issue Sep 9, 2013 · 1 comment

Comments

@maksudc
Copy link

maksudc commented Sep 9, 2013

Suppose I have a class:

class CAdmin(NestedTabularInline):
        extra = 1

class BAdmin(NestedStackedInline):
        inlines = [CAdmin]
        extra = 1

class AAdmin(NestedModelAdmin):
        inlines = [BAdmin]

admin.site.register(AModel . AAdmin)

Now the problem is when I go to admin section for AModel

I see 1 BModel

after clicking add more B

I get 2nd BModel

Inside 2nd BModel the add more C adds C to 1st BModel.

Is there any solution ??

@westurner
Copy link

Is this a duplicate of #10 ?

PetrDlouhy pushed a commit to PetrDlouhy/django-nested-inlines that referenced this issue Apr 18, 2017
Ensures not only that an 'inlines' attribute exists, but also that it is not empty.  Seems to fix issue where top-level nested inline without an 'inlines' value throws an error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants