]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add name parameter to with_polymorphic.
authorFederico Caselli <cfederico87@gmail.com>
Mon, 6 May 2024 21:10:46 +0000 (23:10 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 6 May 2024 21:11:04 +0000 (23:11 +0200)
commit3848aa957870ad84d79aabe90c1309d4e5426844
tree70b14e4b9a9b902fe0cd17d04a698fae8d03f97b
parent4e5bdf800f3e1946a1d78375d950bd7b02b3f1ce
Add name parameter to with_polymorphic.

Added missing parameter :paramref:`_orm.with_polymorphic.name` that
allows specifying the name of returned :class:`_orm.AliasedClass`.

Fixes: #11361
Change-Id: I1eae550452526d85da1377207c5fa5e93ac673c3
(cherry picked from commit 02001e9458802ebb512a140aa24e663b364dc3ad)
doc/build/changelog/unreleased_20/11361.rst [new file with mode: 0644]
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/util.py
test/orm/inheritance/test_polymorphic_rel.py
test/orm/test_cache_key.py