]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
guard against duplicate mutable event listeners
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 May 2023 15:19:43 +0000 (11:19 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 May 2023 20:39:31 +0000 (16:39 -0400)
commit8ee129d988c2499766b1f09c5e21383b88dcc204
treea34347c0bf1b0d5ef21e13eebb46543509ef27be
parent946e71efdfc93777027f4fd7360a524051be393d
guard against duplicate mutable event listeners

Fixed issue in :class:`_mutable.Mutable` where event registration for ORM
mapped attributes would be called repeatedly for mapped inheritance
subclasses, leading to duplicate events being invoked in inheritance
hierarchies.

Fixes: #9676
Change-Id: I91289141d7a5f5c86a9033596735ed6eba7071b0
doc/build/changelog/unreleased_20/9676.rst [new file with mode: 0644]
lib/sqlalchemy/ext/mutable.py
test/ext/test_mutable.py