code: def post(self, request, *args, **kwargs):
          
          form_class = self.get_form_class()
          form = self.get_form(form_class)
  
          if form.is_valid():
              self.object = form.save(commit=False)
              form_validated = True
          else:
              form_validated = False
  
          inlines = self.construct_inlines()
  
          if all_valid(inlines) and form_validated:
              return self.forms_valid(form, inlines)
          return self.forms_invalid(form, inlines)
docs: Handles POST requests, instantiating a form and formset instances with the passed
          POST variables and then checked for validity.