You can add as many forms to a form. Just create / run them in sight and go to the template for rendering in the form.
Sort of:
{{ formset1.management_form }}
{% for form in formset1 %}
{{ form }}
{% endfor %}
{{ formset2.management_form }}
{% for form in formset2 %}
{{ form }}
{% endfor %}
You are using multiple forms in one view, you need to use a prefix for the forms as described here Using multiple forms in a view
In short:
article_formset = ArticleFormSet(prefix='articles')
book_formset = BookFormSet(prefix='books')
source
share