[Django]-In Django, how do you construct a formset manually in a template?

11👍

You can also shortcut that by just outputting the management form, which consists of those two hidden fields:

{{ formset.management_form }}

I didn’t properly cite this info, which can be found at: http://docs.djangoproject.com/en/dev/topics/forms/formsets/

👤shawnr

0👍

In poking around in the internals I found the answer to my own question:

{{formset.management_form.TOTAL_FORMS}}
{{formset.management_form.INITIAL_FORMS}}

Leave a comment