#36614: Deprecate QuerySet.values_list(flat=True) with no fields
-------------------------------------+-------------------------------------
     Reporter:  Adam Johnson         |                     Type:
                                     |  Cleanup/optimization
       Status:  new                  |                Component:  Database
                                     |  layer (models, ORM)
      Version:  dev                  |                 Severity:  Normal
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 In #36606, this case was optimized, but it was also agreed we can
 deprecate it. Using `values_list(flat=True)` doesn’t clearly declare which
 fields to fetch, and while it happens to select the PK due to field
 ordering, that’s unclear. It's also a bit counterintuitive, compared to
 calls without `flat=True`, which select *all* fields.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36614>
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/010701995708f3c3-b3035e65-e3d5-4dde-857b-52170f5c586f-000000%40eu-central-1.amazonses.com.

Reply via email to