]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Default to using current mapped class as owner if none found
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Feb 2018 17:15:57 +0000 (12:15 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 20 Feb 2018 21:41:48 +0000 (16:41 -0500)
commit66a246bd31730d53fb6b0e606d67ea4247f5e56c
tree3d690237e75b90334aa39cc95be66f3cb7ab4149
parent5cb5b8b5f7a5b4488fb5df82c53861d565537405
Default to using current mapped class as owner if none found

Repaired regression caused in 1.2.3 and 1.1.16 regarding association proxy
objects, revising the approach to :ticket:`4185` when calculating the
"owning class" of an association proxy to default to choosing the current
class if the proxy object is not directly associated with a mapped class,
such as a mixin.

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