]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Take instance into account when determining AssociationProxyInstance
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Dec 2018 18:08:29 +0000 (13:08 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 8 Dec 2018 03:40:50 +0000 (22:40 -0500)
commitd6f406e6331a3311fffb54f89b32934482d6c98d
treebc45b62f331cc182fd315cc87c4698587919e675
parentc89729cf67f441359da8289104050b01eb53160b
Take instance into account when determining AssociationProxyInstance

Fixed a regression in 1.3.0b1 caused by :ticket:`3423` where association
proxy objects that access an attribute that's only present on a polymorphic
subclass would raise an ``AttributeError`` even though the actual instance
being accessed was an instance of that subclass.

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