]> 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:04:06 +0000 (16:04 -0500)
commit14c08d18885e16611b884bd76ba2811375de1731
tree66cd6a944896bcb65377c74552cfcc4b08da6a93
parent1de02c9f3f5085e125a6f79230ee7b98f0e30ddb
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
doc/build/changelog/unreleased_13/5737.rst [new file with mode: 0644]
lib/sqlalchemy/orm/events.py
test/orm/test_events.py