#32636: QuerySet.values()/values_list() crashes on a combined queryset ordered 
by
"extra" select.
-------------------------------------+-------------------------------------
     Reporter:  Mariusz Felisiak     |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  3.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  queryset combined    |             Triage Stage:  Accepted
  union difference intersection      |
  extra                              |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * stage:  Unreviewed => Accepted


Comment:

 OK. The idea being that the `extra` should come from the respective
 queryset, not the first one.

 Do it the other way around and the test passes `qs2.union(qs1)...`
 (Because Celebrity has a `name`, I suppose).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32636#comment:1>
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/065.d50066553f8dd1730aab72c86edaafc8%40djangoproject.com.

Reply via email to