mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-12-03 16:24:01 +03:00
Merge cad0ad02db into 442444f0be
This commit is contained in:
commit
baaa266eeb
|
|
@ -64,7 +64,7 @@ def get_view_description(view, html=False):
|
|||
|
||||
|
||||
def set_rollback():
|
||||
for db in connections.all():
|
||||
for db in connections.all(initialized_only=True):
|
||||
if db.settings_dict['ATOMIC_REQUESTS'] and db.in_atomic_block:
|
||||
db.set_rollback(True)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user