Skip to content

Commit

Permalink
Pass form into get_import_data_kwargs (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrdcm committed Apr 26, 2020
1 parent 3327fa8 commit 7c00a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import_export/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def process_dataset(self, dataset, confirm_form, request, *args, **kwargs):
res_kwargs = self.get_import_resource_kwargs(request, *args, **kwargs)
resource = self.get_import_resource_class()(**res_kwargs)

imp_kwargs = self.get_import_data_kwargs(request, *args, **kwargs)
imp_kwargs = self.get_import_data_kwargs(request, form=confirm_form, *args, **kwargs)
return resource.import_data(dataset,
dry_run=False,
raise_errors=True,
Expand Down

0 comments on commit 7c00a2f

Please sign in to comment.