Skip to content

Commit

Permalink
form param fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhegarty committed Apr 12, 2024
1 parent 452847a commit 411543e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/changelog.rst
Expand Up @@ -5,6 +5,11 @@ Changelog

Version 4 introduces breaking changes. Please refer to :doc:`release notes<release_notes>`.

4.0.0-rc.3 (unreleased)
-----------------------

- fix form not being passed to ``get_import_resource_kwargs()`` (#)

4.0.0-rc.2 (2024-04-08)
-----------------------

Expand Down
2 changes: 1 addition & 1 deletion import_export/admin.py
Expand Up @@ -186,7 +186,7 @@ def process_dataset(
request,
**kwargs,
):
res_kwargs = self.get_import_resource_kwargs(request, **kwargs)
res_kwargs = self.get_import_resource_kwargs(request, form=form, **kwargs)
resource = self.choose_import_resource_class(form, request)(**res_kwargs)
imp_kwargs = self.get_import_data_kwargs(request=request, form=form, **kwargs)
imp_kwargs["retain_instance_in_row_result"] = True
Expand Down

0 comments on commit 411543e

Please sign in to comment.