]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure assoc proxy from aliased() is generated in correct context
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 21 Aug 2025 15:20:11 +0000 (11:20 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 22 Aug 2025 14:51:09 +0000 (10:51 -0400)
commitb229245a0ad6c2381aea66e58facfe2e2b92b320
tree6a126b5c2f88e042d18afa3cc9d786473984882c
parent9bd8f205edae4d8fab3b7d188c2c809176edbaae
ensure assoc proxy from aliased() is generated in correct context

Improved association proxy to behave slightly better when the parent class
is used in an :func:`_orm.aliased` construct, so that the proxy as
delivered by the :class:`.Aliased` behaves appropriate in terms of that
aliased construct, including operators like ``.any()`` and ``.has()`` work
correctly.

Fixes: #11622
Change-Id: I6220d984d4323a01a38bd89cfbb1bae46d81c24e
doc/build/changelog/unreleased_20/11622.rst [new file with mode: 0644]
lib/sqlalchemy/ext/associationproxy.py
test/ext/test_associationproxy.py