#31217: QuerySet.values()/values_list() with ordering by annotations with related fields and aggregations crashes. -------------------------------------+------------------------------------- Reporter: felixxm | Owner: felixxm Type: Bug | Status: closed Component: Database layer | Version: 3.0 (models, ORM) | Severity: Release blocker | Resolution: fixed Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>): In [changeset:"673444da5e721c0d23809076c5d5d74224457d23" 673444da]: {{{ #!CommitTicketReference repository="" revision="673444da5e721c0d23809076c5d5d74224457d23" [3.0.x] Fixed #31217 -- Made QuerySet.values()/values_list() group by not selected annotations with aggregations used in order_by(). Regression in 59b4e99dd00b9c36d56055b889f96885995e4240. Thanks Jon Dufresne for the report and Simon Charette for the review. Backport of 6b178a3e930f72069f3cda2e6a09d1b320fc09ec from master }}} -- Ticket URL: <https://code.djangoproject.com/ticket/31217#comment:8> 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.406d1675d408b0a3ce93ad364ae3c6d0%40djangoproject.com.