code: def forms_valid(self, form, inlines):
          
          response = self.form_valid(form)
          for formset in inlines:
              formset.save()
          return response
docs: If the form and formsets are valid, save the associated models.