#24381: Cache pickling issue in 1.8a1
---------------------------------+-----------------------------------------
     Reporter:  marktranchant    |      Owner:  nobody
         Type:  Bug              |     Status:  new
    Component:  Core (Cache      |    Version:  1.8alpha1
  system)                        |
     Severity:  Release blocker  |   Keywords:  cache pickle empty queryset
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+-----------------------------------------
 In 1.7.4, I can run the following in ../manage.py shell:

 {{{
 >>> from MyProject.models import *
 >>> from django.core.cache import cache
 >>> cl = MyModel.objects.filter(contributor__task__id=4)
 >>> cl
 <<< []
 >>> type(cl)
 <<< django.db.models.query.QuerySet
 >>> cache.set('testing', cl)
 >>> cache.get('testing')
 <<< []
 }}}

 In 1.8a1, the last step generates an exception. See attachment for trace.

 {{{
 PicklingError: Can't pickle <type 'module'>: it's not found as
 __builtin__.module
 }}}

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

Reply via email to