Implementing FormCollection w/ Many-to-One Relation, Selectize Widget, and Dynamic Form Fields #141
-
Background: Models:
Requirement:
I went through all the documentation but I couldn't find a solution that matched my case. What would be the best way to implement this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hmm, interesting use case. I see that django-formset is now being used in areas beyond its initial intention. I the future I might integrate it into frameworks such as django-unicorn or HTMX. There have been others asking for this already. Anyway, since each formset holds its own scope (always updated to latest current field values), this could be used as a context for client-side rendering templates. Currently I don't have a short term solution for you. I would have to tinker myself around this. |
Beta Was this translation helpful? Give feedback.
Hmm, interesting use case.
I see that django-formset is now being used in areas beyond its initial intention. I the future I might integrate it into frameworks such as django-unicorn or HTMX. There have been others asking for this already. Anyway, since each formset holds its own scope (always updated to latest current field values), this could be used as a context for client-side rendering templates.
Currently I don't have a short term solution for you. I would have to tinker myself around this.