diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-19 11:09:38 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-19 11:09:38 -0400 |
commit | b9a2b58dd74757184ef94206f09e9db1f536e4cb (patch) | |
tree | 58dd9631ac97aa1b0d5e335f3f3eab5c7c872625 /lib/sqlalchemy/orm/attributes.py | |
parent | fd8dbf8e78981187d091dcc25e63ddfb4e56a5f8 (diff) | |
download | sqlalchemy-b9a2b58dd74757184ef94206f09e9db1f536e4cb.tar.gz |
- Fixed bug in mutable extension as well as
:func:`.attributes.flag_modified` where the change event would not be
propagated if the attribute had been reassigned to itself.
fixes #2997
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 7647bf9d0..3a786c73d 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -1538,4 +1538,4 @@ def flag_modified(instance, key): """ state, dict_ = instance_state(instance), instance_dict(instance) impl = state.manager[key].impl - state._modified_event(dict_, impl, NO_VALUE) + state._modified_event(dict_, impl, NO_VALUE, force=True) |