]> 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:35:51 +0000 (11:35 -0400)
commit174ece15cb167b774d0b48aa2083e13837f99017
tree7613a77df19e6908d7030b1e2f3f7bdd2323dbe5
parent999bd50753a46785d8031d080af661f608b867c5
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
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