#29067: QuerySet.values_list(..., flat=True) combined with .annotate()
incorrectly
includes the annotate columns
-------------------------------------+-------------------------------------
Reporter: Jon | Owner: nobody
Dufresne |
Type: Bug | Status: new
Component: Database | Version: 2.0
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Regression introduced in Django 2.0.
In `FlatValuesListIterable.__iter__()`, can't assume the returned rows
have a single column as using `.annotate()` may have added additional
columns to the `SELECT`.
Introduction bisected to commit 4dfd6b88d520b43b6363946e5ee58ba14cd1efe6.
--
Ticket URL: <https://code.djangoproject.com/ticket/29067>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.4f5c489d991c4d22475a59cfd668a78f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.