#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
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"35355a4ffedb2aeed52d5fe3034380ffc6a438db" 35355a4]:
{{{
#!CommitTicketReference repository=""
revision="35355a4ffedb2aeed52d5fe3034380ffc6a438db"
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.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25389#comment:8>
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.69ded2520c60a6459ea2aab5325ef515%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.