From: Mike Bayer Date: Sun, 16 Dec 2007 20:11:36 +0000 (+0000) Subject: after_update called with state.obj() X-Git-Tag: rel_0_4_2~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30b6d53b6daa46b0319d2974261b9c77c67f3d88;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git after_update called with state.obj() --- diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py index d8c6a4023f..6294338ebb 100644 --- a/lib/sqlalchemy/orm/mapper.py +++ b/lib/sqlalchemy/orm/mapper.py @@ -1131,7 +1131,7 @@ class Mapper(object): for state, connection in updated_objects: for mapper in _state_mapper(state).iterate_to_root(): if 'after_update' in mapper.extension.methods: - mapper.extension.after_update(mapper, connection, state) + mapper.extension.after_update(mapper, connection, state.obj()) def _postfetch(self, connection, table, state, resultproxy, params, value_params): """After an ``INSERT`` or ``UPDATE``, assemble newly generated