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
Refactor transaction handling #690
Refactor transaction handling #690
Conversation
@bmihelac Could you fast-forward this (it's still showing diffs in the CHANGELOG file for instance) please? Also, I see that this is assigned to "django-import-export/maintainers" for code review, but it appears you're the only person in that group? ;) |
Add `atomic_if_using_transaction` context manager and use it instead of if/else statements. Wrap `before_import`, `import_row`, `after_import` calls into `atomic_if_using_transaction`. Add tests. Refs: django-import-export#609, django-import-export#399, django-import-export#610
77323e7
to
dd1c085
Compare
@mgrdcm rebased it to master branch.sorry for misleading review request |
No worries! I'll try to take a look tonight, though anyone else who can should go ahead! |
Not sure when I'm going to be able to do a thorough review of this, might be a few days. @manelclos or @shaggyfrog can you take a look? |
LGTM, tests are passing (including Django 2.0 and master), plus coverage increases 0.6% Whoo-hoo! |
merged, thanks for review |
No description provided.