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

Comment (by Tim Graham):

 Is there a special reason for fixing this rather than adhering to the
 [https://docs.djangoproject.com/en/dev/ref/models/querysets/#extra
 documented policy for QuerySet.extra()]?

  This is an old API that we aim to deprecate at some point in the future.
 Use it only if you cannot express your query using other queryset methods.
 If you do need to use it, please file a ticket using the QuerySet.extra
 keyword with your use case (please check the list of existing tickets
 first) so that we can enhance the QuerySet API to allow removing extra().
 We are no longer improving or fixing bugs for this method.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32636#comment:4>
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.51f50f0e0b51a48e9edb94ec173239f2%40djangoproject.com.

Reply via email to