Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/encode/django-rest-framework
/ set_rollback
Function
set_rollback
rest_framework/views.py:66–69 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
64
65
66
def
set_rollback():
67
for
db in connections.all():
68
if
db.settings_dict[
'ATOMIC_REQUESTS'
] and db.in_atomic_block:
69
db.set_rollback(True)
70
71
72
def
exception_handler(exc, context):
Callers
1
exception_handler
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected