title: Django Formset in generic FormView
body: <p>Hi i used formsets in generic FormView like this:</p>
  
  <pre><code>class RequestRecommendationView(FormView):
      template_name = "account/stepfour.html"
      form_class = formset_factory(StepFourForm)
  
      def form_valid(self,form):
          print form.is_valid()
          cleaned_data = form.cleaned_data
          # return redirect(reverse("some_url_name"))
  </code></pre>
  
  <p>form for formset_factory is like this:</p>
  
  <pre><code>class StepFourForm(forms.Form):
      contact_person = forms.CharField(required=True)
      email = forms.EmailField(required=True)
      company = forms.CharField(required=True)
      request_message = forms.CharField(required=True)
  </code></pre>
  
  <p>my html structure is like this:</p>
  
  <pre><code>&lt;div style="padding-top:100px;padding-left:10px;"&gt;
      &lt;h4&gt; Request a Recommendation &lt;/h4&gt;
      &lt;form method="post" action=""&gt;
              {% csrf_token %}
  
              &lt;table id="myForm"&gt;
                  &lt;tbody&gt;
                  {% for f in form %}
                      {% for field in f %}
                          &lt;tr&gt;
                              &lt;td&gt;{{field.label_tag}}&lt;/td&gt;
                              &lt;td&gt;{{field}}&lt;/td&gt;
  
                              {% for error in field.errors %}
                              &lt;td&gt;&lt;span&gt;{{ error }}&lt;/span&gt;&lt;/td&gt;
                              {% endfor %}
                          &lt;/tr&gt;
                      {% endfor %}
                  {% endfor %}
                  &lt;/tbody&gt;
              &lt;/table&gt;
  
              &lt;button class="btn btn-primary btn-xlarge" type="submit" name="submit"&gt;Request Now&lt;/button&gt;
              {{ form.management_form }}
          &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Then i used django-dynamic-formset (<a href="https://code.google.com/p/django-dynamic-formset/" rel="nofollow">https://code.google.com/p/django-dynamic-formset/</a>)
  to add/remove extra forms through these:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(function() {
                 $('#myForm tbody').formset();
             })
  &lt;/script&gt;
  </code></pre>
  
  <p>the problem is:
  if i leave the form empty,(every field is required), it manages to get to form_valid() of my class-view (though it should not),  if i fill one of the fields (leaving others unfilled), it displays the errors associated message successfully. why is this happening ? what should i do to fix it ? is providing form_class a formset is behind all of this ?  </p>