#36605: Support chaining `QuerySet.in_bulk()` after `.values()` or `.values_list()`
-------------------------------------+-------------------------------------
Reporter: Adam | Owner: Adam Johnson
Johnson |
Type: New | Status: assigned
feature |
Component: Database | Version: dev
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Per [
https://github.com/django/new-features/issues/74 new-features#74 ],
supporting `values()`/`values_list()` to be chained with `in_bulk()` would
allow fetching limited columns while obeying database parameter limits.
The implementation for #28586 would benefit from it, at least.
#35690 improved the error message for these currently-unsupported cases,
but also had an associated PR trying to add support:
https://github.com/django/django/pull/18497 . We can revive this PR and
finish it off.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36605>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.