def forms_valid(self, form, inlines):
        self.object = form.save()
        for formset in inlines:
            formset.save()
        return HttpResponseRedirect(self.get_success_url())
If the form and formsets are valid, save the associated models.
dataset/ETHPy150Open AndrewIngram/django-extra-views/extra_views/advanced.py/ModelFormWithInlinesMixin.forms_valid