]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Refer to existing of_type when resolving string attribute name
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Dec 2018 21:01:04 +0000 (16:01 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Dec 2018 21:04:24 +0000 (16:04 -0500)
commitd00dce5cc9834483033f39822d717a14e33c0362
tree08baca471887ef46cd2f2f73928f01a6d85b98fe
parent04bc04240217462b8c548de37c9cff21fc4b1b44
Refer to existing of_type when resolving string attribute name

Fixed bug where chaining of mapper options using
:meth:`.RelationshipProperty.of_type` in conjunction with a chained option
that refers to an attribute name by string only would fail to locate the
attribute.

Fixes: #4400
Change-Id: I01bf449ec4d8f56bb8c34e25153c1c9b31ff8012
(cherry picked from commit 099f3fd812ff4424f90f3c2b41ddce7049a54022)
doc/build/changelog/unreleased_12/4400.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_options.py