If the form and formsets are valid, save the associated models.

def forms_valid(self, inlines):
        """
        If the form and formsets are valid, save the associated models.
        """
        for formset in inlines:
            formset.save()
        return HttpResponseRedirect(self.get_success_url())