]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
pickle mutable parents according to key
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Jun 2022 19:41:31 +0000 (15:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Jun 2022 20:16:43 +0000 (16:16 -0400)
commitf4188f571df11905bb4aab107b45298c7130a0ec
tree4c82e421ac4338c8e8d92175a10fb6384b22db29
parentbef0cb2537a58eaefd6c9e4eb721588f97da1343
pickle mutable parents according to key

Fixed bug in :class:`.Mutable` where pickling and unpickling of an ORM
mapped instance would not correctly restore state for mappings that
contained multiple :class:`.Mutable`-enabled attributes.

Fixes: #8133
Change-Id: I508763e0df0d7a624e1169f9a46d7f25404add1e
(cherry picked from commit 69020e416d9836fcc0bc99fcf008563263fb86f3)
doc/build/changelog/unreleased_14/8133.rst [new file with mode: 0644]
lib/sqlalchemy/ext/mutable.py
test/ext/test_mutable.py