]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The ``viewonly`` flag on :func:`.relationship` will now prevent
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 20 Nov 2013 00:16:26 +0000 (19:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 20 Nov 2013 00:16:26 +0000 (19:16 -0500)
commit63508b82cd5710c660383bcac5fcfd3bb6af83c1
treed1d37de872d048d2beff170dac5324394ec58e99
parent452ce0c2e7fae13a569341cbbe6f3a988c0c6360
- The ``viewonly`` flag on :func:`.relationship` will now prevent
attribute history from being written on behalf of the target attribute.
This has the effect of the object not being written to the
Session.dirty list if it is mutated.  Previously, the object would
be present in Session.dirty, but no change would take place on behalf
of the modified attribute during flush.   The attribute still emits
events such as backref events and user-defined events and will still
receive mutations from backrefs. [ticket:2833]
doc/build/changelog/changelog_09.rst
doc/build/changelog/migration_09.rst
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/state.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_relationships.py