]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Include active_history when propagating attribute listeners
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 23 May 2019 15:35:51 +0000 (11:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 23 May 2019 15:41:23 +0000 (11:41 -0400)
commitf8a5ac730bc25799bb58ea8d5c2214871ebadda0
tree053a1510079e2da0e068fbfd183181796a7977b4
parenta3fe0317ca6123fccec2caa0072fc3c4574720fb
Include active_history when propagating attribute listeners

Fixed issue where the :paramref:`.AttributeEvents.active_history` flag
would not be set for an event listener that propgated to a subclass via the
:paramref:`.AttributeEvents.propagate` flag.   This bug has been present
for the full span of the :class:`.AttributeEvents` system.

Fixes: #4695
Change-Id: Ie384f4847f37c267d94b6d56e7538438efc1a54c
(cherry picked from commit 174ece15cb167b774d0b48aa2083e13837f99017)
doc/build/changelog/unreleased_13/4695.rst [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/events.py
test/orm/test_attributes.py