-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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 set_rollback on @transaction.non_atomic_requests. #3016
Conversation
Thanks for the pull request. |
The provided test is already working against the current master (without your fix being included). |
@xordoquy Here is runnig app With this code |
Hey, In addition, @xordoquy can You try now without checking It was really hard to figure out this Django test internals... |
@hellysmile ace ! |
Fix set_rollback on @transaction.non_atomic_requests.
Thanks for the PR ! |
set_rollback()
checks only
ATOMIC_REQUEST
value, but it can be turned off per view by@transaction.non_atomic_requests
Attempt to rollback without atomic block raises
https://github.com/django/django/blob/06dc6759d85c6c24b599de07cea47387d3dc2cf9/django/db/backends/base/base.py#L361
Really critical, due
http404
for every@transaction.non_atomic_requests