MCPcopy 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
66def 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
72def exception_handler(exc, context):

Callers 1

exception_handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected