{% extends "base.html" %} {% block title %}Multiple formsets on the same page{% endblock %} {% block extrahead %} {{ event_formset.media }} {% endblock %} {% block content %}

Contact formset

{% for form in contact_formset.forms %} {% endfor %}
Preferred Type Value
{{ form.preferred }} {{ form.type }} {{ form.value }}

Event formset

{% for form in event_formset.forms %}
Name {{ form.name }}
Start Date {{ form.start_date }}
End Date {{ form.end_date }}
{% endfor %}

{{ contact_formset.management_form }} {{ event_formset.management_form }}

{% endblock %} {% block sidebar %}

Someone posted a comment with a workaround that enabled them use multiple formsets on the same HTML page. Personally, I've never needed this, but if you find that you need to work with multiple formsets, view the source of this page to find out how.

Don't forget to check out the docs for a detailed explanation of how this works.

{% endblock %}