Loading django/db/backends/__init__.py +4 −0 Original line number Diff line number Diff line Loading @@ -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: Loading @@ -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: Loading Loading
django/db/backends/__init__.py +4 −0 Original line number Diff line number Diff line Loading @@ -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: Loading @@ -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: Loading