We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e747973 commit 91b8091Copy full SHA for 91b8091
django_mongodb_backend/transaction.py
@@ -21,6 +21,7 @@ def __init__(self, using):
21
22
def __enter__(self):
23
connection = get_connection(self.using)
24
+ connection.ensure_connection()
25
if connection.in_atomic_block_mongo:
26
# Track the number of nested atomic() calls.
27
connection.nested_atomics += 1
0 commit comments