From 1820d35b17f0a95f4ce888971b9ca0c7a3697c83 Mon Sep 17 00:00:00 2001 From: John Parton Date: Sun, 18 Aug 2024 23:12:14 -0500 Subject: Fixed #36605 -- Added support for QuerySet.in_bulk() after .values() or .values_list(). co-authored-by: Adam Johnson co-authored-by: Simon Charette --- docs/ref/models/querysets.txt | 5 +++++ docs/releases/6.1.txt | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 5fb6cb33b3..4be1759af2 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -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()`` ~~~~~~~~~~~~~~ diff --git a/docs/releases/6.1.txt b/docs/releases/6.1.txt index edfdacf6b7..56a222f3e3 100644 --- a/docs/releases/6.1.txt +++ b/docs/releases/6.1.txt @@ -175,7 +175,8 @@ Migrations Models ~~~~~~ -* ... +* :meth:`.QuerySet.in_bulk` now supports chaining after + :meth:`.QuerySet.values` and :meth:`.QuerySet.values_list`. Pagination ~~~~~~~~~~ -- cgit v1.3