DEV Community

Cover image for Django nested inline redering

Django nested inline redering

Maxim Danilov on June 24, 2022

This article expands on the ideas of my previous articles: Django admin dynamic Inline positioning and How to solve the singleton problem in Django...
Collapse
 
dehess profile image
DeHess

Hello,

This code works great!
there is just one bug, when I put the "extra" attribute in the Inlines to 0,
the addInlineclickHandlers don't function anymore. In this case, clicking on "Add Another" doesn't do anything.

I'm going to try and fix this in the inlines.js myself and post a fix here if I can find one.
If you guys have a quick solution to this I'd be glad to hear from you.

Collapse
 
danilovmy profile image
Maxim Danilov • Edited

Thank you. Can you add an issue about this bug? I try to improve it.