#32636: QuerySet.values()/values_list() crashes on a combined queryset ordered by "extra" select. -------------------------------------+------------------------------------- Reporter: Mariusz Felisiak | Owner: David | Wobrock Type: Bug | Status: closed Component: Database layer | Version: 3.2 (models, ORM) | Severity: Normal | Resolution: wontfix Keywords: queryset combined | Triage Stage: Accepted union difference intersection | QuerySet.extra | Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Mariusz Felisiak):
* keywords: queryset combined union difference intersection extra => queryset combined union difference intersection QuerySet.extra * status: assigned => closed * resolution: => wontfix Comment: Replying to [comment:4 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. Agreed, let's not create a precedent. -- Ticket URL: <https://code.djangoproject.com/ticket/32636#comment:6> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.f5720c137f16d95ca460d3b82262e996%40djangoproject.com.