title: Using a FormSet in a ClassBasedView in django
body: <p>I'm trying to set up a django form consisting solely of a formset. In forms.py I have:</p>
  
  <pre><code>class StudentEnrolmentForm(forms.ModelForm):
      school_class = forms.ModelChoiceField(SchoolClass.objects.currently_enrolling())
  
      class Meta:
          model = StudentApplication
          fields = []
  
  StudentEnrolmentFormSet = modelformset_factory(StudentApplication, StudentEnrolmentForm, extra=0)
  </code></pre>
  
  <p>but I'm unclear how to incorporate the FormSet into a CBV (In this case I've chosen a FormView). In this case I'm basically displaying a table of students, and allowing the operator to assign each student to a class. I only want a single 'submit' button at the end of the page.</p>