diff options
| author | blingblin-g <luvbliny@gmail.com> | 2025-07-31 00:03:27 +0900 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-09-16 14:14:23 -0400 |
| commit | e08fa42fa6d0e9f2a74e8fcdc5a47f5c3b825877 (patch) | |
| tree | e0073b0fa22279f46b3156a5397760cb4f9d2458 /docs | |
| parent | e059bbec96ed85d5f4d63893d687c8af966430c8 (diff) | |
Fixed #36426 -- Added support for further iterables in prefetch_related_objects().
Thanks Sarah Boyce for the review.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/querysets.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index baeb3e8746..59550e6690 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -4223,8 +4223,9 @@ Prefetches the given lookups on an iterable of model instances. This is useful in code that receives a list of model instances as opposed to a ``QuerySet``; for example, when fetching models from a cache or instantiating them manually. -Pass an iterable of model instances (must all be of the same class) and the -lookups or :class:`Prefetch` objects you want to prefetch for. For example: +Pass an iterable of model instances (must all be of the same class and able to +be iterated multiple times) and the lookups or :class:`Prefetch` objects you +want to prefetch for. For example: .. code-block:: pycon |
