]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- :func:`.attributes.get_history()` when used with a scalar column-mapped
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 25 Oct 2013 17:13:24 +0000 (13:13 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 25 Oct 2013 17:13:24 +0000 (13:13 -0400)
commit2b1c8eabb10c932f6e83d08147c75bb05f96a161
treeb54f3b71a420d77016554f9458d022c94016f6cd
parent3a4567a718c2f9f3d8b65acb81f0caefb4f1a2b5
- :func:`.attributes.get_history()` when used with a scalar column-mapped
attribute will now honor the "passive" flag
passed to it; as this defaults to ``PASSIVE_OFF``, the function will
by default query the database if the value is not present.
This is a behavioral change vs. 0.8.  [ticket:2787]
- Added new method :meth:`.AttributeState.load_history`, works like
:attr:`.AttributeState.history` but also fires loader callables.
doc/build/changelog/changelog_09.rst
doc/build/changelog/migration_09.rst
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/state.py
test/orm/test_attributes.py
test/orm/test_inspect.py