]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
support adapt_on_names for with_polymorphic
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Mar 2022 14:34:09 +0000 (09:34 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Mar 2022 19:54:59 +0000 (14:54 -0500)
commit78c0d4f3c6961accbe9911588e73b33a0179a098
treeae8ba8524d074c2c95e95b0fba34589589a8c0d8
parenta8102ba496c4c11eae6b904a962cf352902f0de7
support adapt_on_names for with_polymorphic

Added :paramref:`_orm.with_polymorphic.adapt_on_names` to the
:func:`_orm.with_polymorphic` function, which allows a polymorphic load
(typically with concrete mapping) to be stated against an alternative
selectable that will adapt to the original mapped selectable on column
names alone.

Fixes: #7805
Change-Id: I933e180a489fec8a6f4916d1622d444dd4434f30
(cherry picked from commit 33e198185b2c8cc5a61c990d09a76bec76fafe31)
doc/build/changelog/unreleased_14/7805.rst [new file with mode: 0644]
lib/sqlalchemy/orm/util.py
test/orm/inheritance/test_concrete.py