#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:"63a1e912a78a4a18ca675ecc0db5be6f48985af5" 63a1e912]:
 {{{
 #!CommitTicketReference repository=""
 revision="63a1e912a78a4a18ca675ecc0db5be6f48985af5"
 [1.9.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:10>
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.140c34df8d53f49259cfa85cd3af4a3b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to