I have the following form in my template:
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ formset.management_form }}
{% crispy blog_form %}
{% for form in formset %}
{% crispy form %}
{% endfor %}
<button type="submit">Save</button>
</form>
However: when I post this I get the following error:
Hidden Field TOTAL_FORMS is a required field.
and
Hidden field INITIAL_FORMS is a required field.
This form works well when I don’t use the crispy tags. I want to use crispy forms to make the form look good. What am I missing and how can I fix it?