Replies: 1 comment
-
django-nested-admin uses those class names to figure out the relationships between the various inlines. They are not meant to be overwritten, and in fact they cannot be. The result of your change is to make both inlines have I don't really understand what you're trying to accomplish, but if you elaborated I might be able to suggest an alternative approach. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running into some weird behavior when trying to run/integrate a multiple layer nested admin with grappelli.
Here's the original issue opened on django-grappelli
here's the dummy models I have. Nothing too fancy, pretty straightforward nested models. Note that the Article has two foreign key referencing it. One from the image and one from the paragraph models.
Here's how my admin looks without trying to rearrange the nested inlines. Also nothing too fancy here pretty straightforward, just note that article is already an inline of sections (which is an inline of table of content)
Here's how things look on the admin UI
Now as you might have guessed, my goal is to rearrange the inlines image and paragraph under the designated fieldsets for each category. When uncommentting the classes to try to rearrange them some weird behavior happen. here's a screenshot
As you can see the sections have been rearranged correctly but as a consequence:
Image Data
andParagraph Data
have disappeared.2.1 If I add a new article the un-collapsing works but the title of the fieldset mentioned in 1) is not present either.
I see that django-nested-admin has good intention in supporting grappelli. Would appreciate any help or directions, happy to contribute if I can help!
django = "4.1.5"
django-nested-admin = "4.0.2"
Beta Was this translation helpful? Give feedback.
All reactions