Kaydet (Commit) 09ba70f9 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Made transaction management work even before the first SQL query.

Thanks Florian again.
üst 7c46c8d5
......@@ -269,6 +269,8 @@ class BaseDatabaseWrapper(object):
"""
self.validate_no_atomic_block()
self.ensure_connection()
self.transaction_state.append(managed)
if not managed and self.is_dirty() and not forced:
......@@ -286,6 +288,8 @@ class BaseDatabaseWrapper(object):
"""
self.validate_no_atomic_block()
self.ensure_connection()
if self.transaction_state:
del self.transaction_state[-1]
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment