A named outer is suitable when dealing with IntegrityErrors. It only checks that it is not nested under an atomic only if it is nested under enable_outer_atomic(name=<name>). This way only the view which is causing IntegrityErrors needs to have its automatic transaction management disabled and other callers are not effected.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
fixtures | Loading commit data... | |
__init__.py | Loading commit data... | |
test_date_utils.py | Loading commit data... | |
test_db.py | Loading commit data... | |
test_disable_rate_limit.py | Loading commit data... | |
test_django_utils.py | Loading commit data... | |
test_file.py | Loading commit data... | |
test_json_request.py | Loading commit data... | |
test_keyword_sub_utils.py | Loading commit data... | |
test_memcache.py | Loading commit data... | |
test_milestones_helpers.py | Loading commit data... | |
test_organizations_helpers.py | Loading commit data... | |
test_request.py | Loading commit data... | |
test_sandboxing.py | Loading commit data... | |
test_string_utils.py | Loading commit data... | |
test_submit_feedback.py | Loading commit data... |