This commit is contained in:
Johan De Taeye 2025-04-10 15:59:33 +02:00 committed by GitHub
commit 3cd90dd325
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)