#31943: Queryset with values()/values_list() crashes when recreated from a 
pickled
query.
-------------------------------------+-------------------------------------
     Reporter:  Beda Kosata          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  2.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

 Completely missed the link to the documentation, sorry about that. I was
 not aware that pickling a queryset was ''always'' evaluating it.

 I agree with Mariusz proposition, assigning `_iterable_class` on
 `query.values_select` presence and a documentation adjustment is likely
 the best we can do here.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31943#comment:5>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.ce3b5874a6f82ea36a0b685d7371c9e7%40djangoproject.com.

Reply via email to