]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use configured props for mapper.attrs, mapper.all_orm_descriptors
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Nov 2016 19:24:48 +0000 (14:24 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Nov 2016 02:10:15 +0000 (21:10 -0500)
commit8b64240e3a2c6923eaaca821943d379945d3a53d
tree3ed451de4b46755c47e29c0bfe0b43b0c80c60ff
parente2a976e916575a305363ae8a5841c4058ece90bd
Use configured props for mapper.attrs, mapper.all_orm_descriptors

Fixed bug where the :attr:`.Mapper.attrs`,
:attr:`.Mapper.all_orm_descriptors` and other derived attributes would
fail to refresh when mapper properties or other ORM constructs were
added to the mapper/class after these  accessors were first called.

Change-Id: Iaecdb4b3d8c3a3b44302a5880476e60a1f4e27d9
Fixes: #3778
(cherry picked from commit 6319eb0ce7c095ba7d4f60746ce12cf575730b46)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/mapper.py
test/orm/test_inspect.py