]> 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:10:46 +0000 (23:10 +0200)
commit02001e9458802ebb512a140aa24e663b364dc3ad
tree65db6ea3955b7dcb0b00edd71ad789f26bbbe1e3
parentc6a280658c1b969d8efb3896764f641d150a75d4
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
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