title: MultiValueDictKeyError at /physicians/3/update/ "u'form-1-id'"; Saving formsets
body: <p>im trying to save all the forms from my formset and it doesnt pass the validation. here is my code</p>
  
  <pre><code>def UpdatePhysician(request,id):
  
  physician = get_object_or_404(Physician, id=id)
  SpecialtyFormset = modelformset_factory(PhysicianSpecialties, fields=('specialty',),max_num=1, labels=None, )
  formset = SpecialtyFormset(queryset=PhysicianSpecialties.objects.filter(employee_academic_degree__employee__pk=physician.employee.id))
  
  
  
  if request.method == "POST":
      formset = SpecialtyFormset(request.POST,)
      for form in formset:
          print(form)
  
      if (formset.is_valid()):
  
          for form in formset:
              form.save()
  
  
  
          return HttpResponse('yesh')
      else:
          return HttpResponse('nope')
  
  return render(request, 'UpdatePhysician.html', {
                                                  'formset': formset,
                                                  })
  </code></pre>
  
  <p>it throws me an error like this </p>
  
  <p>"MultiValueDictKeyError at /physicians/3/update/
  "u'form-1-id'""</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I noticed when i have just 1 object in the formset it saves the record perfectly</p>
  
  <p><strong>My template is</strong></p>
  
  <pre><code>{% extends 'prescription_menu.html' %}
  {% load bootstrap3 %}
  {% load crispy_forms_tags %}
   {% block css %}
      &lt;link rel="stylesheet" type="text/css" href="{{ STATIC_URL   }}site/css/select2.css"/&gt;
  {% endblock %}
  
  {% block title %}Physicians{% endblock title %}
  
  {% block container %}
      {% csrf_token %}
  &lt;form  method="POST"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-offset-2 col-md-8"&gt;
              {{ formset.management_form }}
              {% for form in formset %}
                  {% crispy form %}
              {% endfor %}
              &lt;input type="submit" name="Save" value="Save" class="btn btn-primary" id="submit-id-save"&gt;
          &lt;/div&gt;
     &lt;/div&gt;
  &lt;/form&gt;
   {% endblock container %}
  </code></pre>