#25389: SimpleLazyObject doesn't pickle correctly when wrapping a Model
-------------------------------------+-------------------------------------
Reporter: benjaminjkraft | Owner:
| benjaminjkraft
Type: Bug | Status: closed
Component: Database layer | Version: 1.8
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham <timograham@…>):
In [changeset:"c03f0c282d22b7753a48cb46af33c4d3a73397ee" c03f0c2]:
{{{
#!CommitTicketReference repository=""
revision="c03f0c282d22b7753a48cb46af33c4d3a73397ee"
[1.8.x] 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.
Backport of 35355a4ffedb2aeed52d5fe3034380ffc6a438db from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25389#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/072.2d464ccf2e989fff8424a66593335ea0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.