Opened 35 hours ago
Last modified 31 hours ago
#36605 assigned New feature
Support chaining `QuerySet.in_bulk()` after `.values()` or `.values_list()`
Reported by: | Adam Johnson | Owned by: | Adam Johnson |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Per â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.
Note:
See TracTickets
for help on using tickets.