]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Accommodate for base class when adjusting path for with_polymorphic
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Jan 2020 17:34:06 +0000 (12:34 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 28 Jan 2020 17:44:50 +0000 (12:44 -0500)
commitc9406e58a4fd2de4bb2fd53530e04cc9fc786cbf
tree61c8eaee03d7e285965fec87bae02f06ccd91c48
parent0cc2695510c0f0b09328e4cdf8d3ae29ac7f7abd
Accommodate for base class when adjusting path for with_polymorphic

Fixed an additional regression in the same area as that of :ticket:`5080`
introduced in 1.3.0b3 via :ticket:`4468` where the ability to create a
joined option across a :func:`.with_polymorphic` into a relationship
against the base class of that with_polymorphic, and then further into
regular mapped relationships would fail as the base class component would
not add itself to the load path in a way that could be located by the
loader strategy. The changes applied in :ticket:`5080` have been further
refined to also accommodate this scenario.

Fixes: #5121
Change-Id: I9753dbbcb7b7640c995ad983a6d04b36fa18cf54
doc/build/changelog/unreleased_13/5121.rst [new file with mode: 0644]
lib/sqlalchemy/orm/path_registry.py
test/orm/inheritance/test_relationship.py
test/orm/test_utils.py