I have to make a form in which more than one formset is used. please tell me if this is possible. if yes then how?
相关问题
- how to define constructor for Python's new Nam
- Laravel Option Select - Default Issue
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Django __str__ returned non-string (type NoneType)
When adding a prefix='article' We need to consider that the id of the formset will change and there are other changes too like
You can add as many formsets in the form. Just create/init them in view and pass to template to render in the form.
Something like:
You are using multiple formsets in one view, you need to use prefix for the forms as explained here Using more than one formset in a view In short: