mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #25389 -- Fixed pickling a SimpleLazyObject wrapping a model.
Pickling a `SimpleLazyObject` wrapping a model did not work correctly; in
particular it did not add the `_django_version` attribute added in 42736ac8
.
Now it will handle this and other custom `__reduce__` methods correctly.
This commit is contained in:
parent
c055224763
commit
35355a4ffe
4 changed files with 128 additions and 24 deletions
|
@ -56,3 +56,5 @@ Bugfixes
|
|||
* Fixed incorrect queries with multiple many-to-many fields on a model with the
|
||||
same 'to' model and with ``related_name`` set to '+' (:ticket:`24505`,
|
||||
:ticket:`25486`).
|
||||
|
||||
* Fixed pickling a ``SimpleLazyObject`` wrapping a model (:ticket:`25389`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue