fix: django-import-export unable to import #402
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Import action is broken per changes from #398
Resource was inferred as the file field but it's a different field on its own. Current issue can also be observed on the deployed unfoldadmin/formula
The actual file is never passed back to import-export since the expected input_file field is missing.
Changes
Reverting partial changes from #398 while cleaning up the formatting a touch to manage multiple resources
Single Resource View:

Multiple Resource View:

Tests
Tested locally with:
[email protected]
django@5
[email protected]
I didn't go too deep in the export action and how resources might play a part there since it was functional and not completely broken.