]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Pass along other keyword args in _EventsHold.populate
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 1 Dec 2020 21:03:35 +0000 (16:03 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 1 Dec 2020 21:06:04 +0000 (16:06 -0500)
commit886858985b64970e2248c186afb1a809c9d5ffd1
tree1689f94635110bf5bb9a7591c7f9a4eebafe8d25
parentb36e48c4eae7a27a37f31fb7b779c628fe1fa81b
Pass along other keyword args in _EventsHold.populate

Fixed bug involving the ``restore_load_context`` option of ORM events such
as :meth:`_orm.InstanceEvents.load` such that the flag would not be carried
along to subclasses which were mapped after the event handler were first
established.

Fixes: #5737
Change-Id: Ie65fbeac7ab223d24993cff0b34094d4928ff113
(cherry picked from commit 14c08d18885e16611b884bd76ba2811375de1731)
doc/build/changelog/unreleased_13/5737.rst [new file with mode: 0644]
lib/sqlalchemy/orm/events.py
test/orm/test_events.py