I have these Models:
class Gallery(models.Model):
HeadImage = models.ImageField(upload_to=\"gallery\")
class Image(models.Model):
Image = models.Image
It looks like you are manually rendering the form in your template, and missing out the id field. Make sure you include {{ form.id }}
for each form in the formset.
<form method="post" action="">
{{ formset.management_form }}
{% for form in formset %}
{{ form.id }}
<ul>
<li>{{ form.title }}</li>
</ul>
{% endfor %}
</form>
See the docs on using model formsets in the template for more information.