]> 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 18:25:46 +0000 (13:25 -0500)
commit0a8edf6feb25a046505ef79796695fac90c152d4
treee2fe6cbdce54995f21cb6ec631d5d783747ea355
parenta289e05226e20cc6de9deb479f63297320ef7c5c
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
doc/build/changelog/unreleased_14/7805.rst [new file with mode: 0644]
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/util.py
test/orm/inheritance/test_concrete.py