]> 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:03:17 +0000 (16:03 -0500)
commit099f3fd812ff4424f90f3c2b41ddce7049a54022
tree2dbff7d21b0ba289e7631fad6e65a7993bbafd35
parent5851bf113821af6ce2e61484f103a44f4fabe430
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
doc/build/changelog/unreleased_12/4400.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_options.py