summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/unitofwork.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/orm/unitofwork.py')
-rw-r--r--lib/sqlalchemy/orm/unitofwork.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/unitofwork.py b/lib/sqlalchemy/orm/unitofwork.py
index 756389fa7..cbf45039e 100644
--- a/lib/sqlalchemy/orm/unitofwork.py
+++ b/lib/sqlalchemy/orm/unitofwork.py
@@ -130,7 +130,9 @@ class UOWTransaction(object):
def remove_state_actions(self, state):
"""remove pending actions for a state from the uowtransaction."""
- self.states[state] = (False, True)
+ isdelete = self.states[state][0]
+
+ self.states[state] = (isdelete, True)
def get_attribute_history(self, state, key, passive=True):
"""facade to attributes.get_state_history(), including caching of results."""