code: def process_import(self, request, *args, **kwargs):
          
          if not self.has_import_permission(request):
              raise PermissionDenied
  
          form_type = self.get_confirm_import_form()
          confirm_form = form_type(request.POST)
          if confirm_form.is_valid():
              import_formats = self.get_import_formats()
              input_format = import_formats[
                  int(confirm_form.cleaned_data['input_format'])
              ]()
              tmp_storage = self.get_tmp_storage_class()(name=confirm_form.cleaned_data['import_file_name'])
              data = tmp_storage.read(input_format.get_read_mode())
              if not input_format.is_binary() and self.from_encoding:
                  data = force_text(data, self.from_encoding)
              dataset = input_format.create_dataset(data)
  
              result = self.process_dataset(dataset, confirm_form, request, *args, **kwargs)
  
              tmp_storage.remove()
  
              return self.process_result(result, request)
docs: Perform the actual import action (after the user has confirmed the import)