'Perform the actual import action (after the user has confirmed the import)'

@method_decorator(require_POST)
def process_import(self, request, *args, **kwargs):

    confirm_form = ConfirmImportForm(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)
