I build the pieces of the form set manually in the template. How to get hidden fields TOTAL_FORMS and INITIAL_FORMS. Is there a hidden widget with them in it already there that I can call?
<label>formset title</label> #formset.TOTAL_FORMS #formset.INITIAL_FORMS {% for form in formset.forms %} {{form.field}} {{form.id}} {% endfor %}
You can also shorten this by simply displaying a control form consisting of two hidden fields:
{{ formset.management_form }}
I did not correctly quote this information, which can be found at: http://docs.djangoproject.com/en/dev/topics/forms/formsets/
Fumbling in the internal details, I found the answer to my question:
{{formset.management_form.TOTAL_FORMS}} {{formset.management_form.INITIAL_FORMS}}
Source: https://habr.com/ru/post/1713265/More articles:Conversion class extension (extension methods and Parital class) - c #linux permission group - linuxHow can I make a tray icon in Linux using C ++? - c ++OpenGL Alpha mixes with the wrong color - c ++User actions such as social networks facebook, myspace, all big - phpRegarding remote debugging on the MCF5485EVB using Eclipse CDT - debuggingЧто такое практическое применение метода Java compareTo? - javaCan I fully force a TFS check? - tfsStaff Web Services Structure - c ++Flex, Flexunit: How to check that an event is sent twice? - flexAll Articles