Tuesday, October 8, 2019

Re: Widgets not working for dynamically added formset forms

At first I hoped not to dive in JS and mostly use django things, but ok, now I see it's not that simple.
Thanks for help.

вторник, 8 октября 2019 г., 16:49:08 UTC+3 пользователь lemme smash написал:
okay, i think i got it. you probably need to provide some snippet to reload list of  choices to newly added form. try to look some examples of using django-select2 with formsets...
by pure js i mean not necessarily vanila js, but pure client code, without rendering templates on server. all the problems you have partially (and it's not only my opinion) happens because you trying to combine server-side approach with client code pieces which is always buggy and hard to implement and maintain.  

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/730d35eb-542c-4eff-9359-0dbedb054856%40googlegroups.com.

No comments:

Post a Comment