Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Asset import with Purchase & Delivery info #115

Merged
merged 2 commits into from
Jul 26, 2023
Merged

Fix Asset import with Purchase & Delivery info #115

merged 2 commits into from
Jul 26, 2023

Conversation

matejv
Copy link
Member

@matejv matejv commented Jul 26, 2023

If you had multiple Purchases with the same name but different Suppliers or multiple Deliveries with same name but from different Purchases, the CSV import failed because it searched only on name.

I replaced CSVModelChoiceField with CharFields and am getting the correct Purchase & Delivery instances in AssetImportForm.clean_<field> methods, where I have access to all columns.

@matejv matejv merged commit d7f56cd into master Jul 26, 2023
@matejv matejv deleted the import-fix branch July 26, 2023 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant