1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #36605 -- Added support for QuerySet.in_bulk() after .values() or .values_list().

co-authored-by: Adam Johnson <me@adamj.eu>
co-authored-by: Simon Charette <charette.s@gmail.com>
This commit is contained in:
John Parton
2024-08-18 23:12:14 -05:00
committed by Jacob Walls
parent 68aae8878f
commit 1820d35b17
5 changed files with 367 additions and 14 deletions

View File

@@ -2588,6 +2588,11 @@ Example:
If you pass ``in_bulk()`` an empty list, you'll get an empty dictionary.
.. versionchanged:: 6.1
Support for chaining ``in_bulk()`` after :meth:`values` or
:meth:`values_list` was added.
``iterator()``
~~~~~~~~~~~~~~

View File

@@ -175,7 +175,8 @@ Migrations
Models
~~~~~~
* ...
* :meth:`.QuerySet.in_bulk` now supports chaining after
:meth:`.QuerySet.values` and :meth:`.QuerySet.values_list`.
Pagination
~~~~~~~~~~