#36288: Regression in values_list() with duplicated field names
-------------------------------------+-------------------------------------
     Reporter:  Claude Paroz         |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  5.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * owner:  (none) => Simon Charette
 * status:  new => assigned

Comment:

 This is effectively a regression caused by #28900
 (55bacb7a2a7b65c0708d0b2f28e1f9c83c76509e) as `sql.Query.selected` is now
 a `dict[alias, Expression]` and since `values_list` defaults to using the
 provided strings as field names they get considered to be a single one.

 We'll most likely have to generate an alias for the existing members with
 colliding names.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36288#comment:2>
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 visit 
https://groups.google.com/d/msgid/django-updates/01070195f86cfa7e-1d419b27-9cd4-427a-a65b-2ead7fa17396-000000%40eu-central-1.amazonses.com.

Reply via email to