#24381: Cache pickling exception in 1.8a1 with cross-table filter params
-------------------------------------+-------------------------------------
     Reporter:  marktranchant        |                    Owner:  timgraham
         Type:  Bug                  |                   Status:  closed
    Component:  Core (Cache system)  |                  Version:  1.8alpha1
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:  cache pickle empty   |             Triage Stage:  Accepted
  queryset                           |
    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:"155a127afbd531180eaa2fd875fe111178cfb64c"]:
 {{{
 #!CommitTicketReference repository=""
 revision="155a127afbd531180eaa2fd875fe111178cfb64c"
 [1.8.x] Fixed #24381 -- removed ForeignObjectRel opts and to_opts

 These cached properies were causing problems with pickling, and in
 addition they were confusingly defined: field.rel.model._meta was
 not the same as field.rel.opts.

 Instead users should use field.rel.related_model._meta inplace of
 field.rel.opts, and field.rel.to._meta in place of field.rel.to_opts.

 Backport of f95122e541df5bebb9b5ebb6226b0013e5edc893 from master
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24381#comment:11>
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/071.c9a55ddc84692ccbe68e48b51337ef16%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to