mirror of
https://github.com/django/django.git
synced 2025-11-19 11:15:44 +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:
parent
68aae8878f
commit
1820d35b17
5 changed files with 367 additions and 14 deletions
|
|
@ -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()``
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -175,7 +175,8 @@ Migrations
|
|||
Models
|
||||
~~~~~~
|
||||
|
||||
* ...
|
||||
* :meth:`.QuerySet.in_bulk` now supports chaining after
|
||||
:meth:`.QuerySet.values` and :meth:`.QuerySet.values_list`.
|
||||
|
||||
Pagination
|
||||
~~~~~~~~~~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue