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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/unitofwork.py b/lib/sqlalchemy/orm/unitofwork.py
index 16a01bdc1..0e613a95f 100644
--- a/lib/sqlalchemy/orm/unitofwork.py
+++ b/lib/sqlalchemy/orm/unitofwork.py
@@ -150,6 +150,12 @@ class UOWTransaction(object):
if isdelete and not existing_isdelete:
raise Exception("Can't upgrade from a save to a delete")
+ def issue_post_update(self, state, post_update_cols):
+ mapper = state.manager.mapper.base_mapper
+ mapper._save_obj([state], self, \
+ postupdate=True, \
+ post_update_cols=set(post_update_cols))
+
def states_for_mapper(self, mapper, isdelete, listonly):
checktup = (isdelete, listonly)
for state in self.mappers[mapper]: