An inline within an inline #721
Replies: 7 comments
-
|
What is the error that you are seeing? |
Beta Was this translation helpful? Give feedback.
-
|
I'm in a similar situation, but I get no error at all. Before I had a single childs level and I think it worked, but once I splitted the parent model so now there are two levels, I don't have inlines at all. |
Beta Was this translation helpful? Give feedback.
-
|
@piranna - Can you provide a reproducible example? |
Beta Was this translation helpful? Give feedback.
-
It's private code, but will try to get something. If you want to try, I have parentA class with some fields, childB with no fields, and grandChildC with some fields. If I set grandChildC as direct child of parentA, I think to remember they grandChildC fields were shown, but if I put the intermediate childB class with no fields, no fields of grandChildC are shown. |
Beta Was this translation helpful? Give feedback.
-
|
@piranna - Are you able to extract part of the code and change the variables names, etc... You can call the class A B C, so we can have something to test against. |
Beta Was this translation helpful? Give feedback.
-
there are no errors, just nothing is displayed in the admin panel. |
Beta Was this translation helpful? Give feedback.
-
|
@lyaguxafrog Unfortunately, more than one layer of nested inlines are not supported by the Django inline admin classes. You may find a way to integrate django-nested-admin with the polymorphic admin classes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to make an inline inside the inline, but I didn't understand how to do it, I tried something like this:
Beta Was this translation helpful? Give feedback.
All reactions