Deprecate QuerySet.values_list(flat=True) with no fields
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.
Change History
(6)
Has patch: |
set
|
Owner: |
set to Adam Johnson
|
Status: |
new → assigned
|
Triage Stage: |
Unreviewed → Accepted
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
In 8b241f8: