]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Relax "ambiguous" association proxy restrictions, support Proxy
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Jan 2019 23:53:58 +0000 (18:53 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Jan 2019 02:26:35 +0000 (21:26 -0500)
commit836178d42620869c3cab4b7f41d24560f0098c87
tree362fe080e1a41295f5f12561e77e46b009e77de3
parent5f697cb6729761cc0422597339f7b5e41382b803
Relax "ambiguous" association proxy restrictions, support Proxy

Fixed issue in association proxy due to :ticket:`3423` which caused the use
of custom :class:`.PropComparator` objects with hybrid attribites, such as
the one demonstrated in  the ``dictlike-polymorphic`` example to not
function within an association proxy.  The strictness that was added in
:ticket:`3423` has been relaxed, and additional logic to accomodate for
an association proxy that links to a custom hybrid have been added.

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