summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGeorgios Verigakis <verigak@gmail.com>2026-03-28 15:24:05 +0200
committerJacob Walls <jacobtylerwalls@gmail.com>2026-03-28 09:24:47 -0400
commit4a21ba2210ee5b1e650f6b0faa75c9d635c6cdbc (patch)
tree938a4fd77a777483468195341006d27fc89751f0 /docs
parentcafd811d94d2f4e4076f378ed766178b2486a8a8 (diff)
[6.0.x] Refs #36526 -- Fixed bulk_update() batching example in docs.
Backport of 4fd9e85b6031e7ddf878b280f324da6b98f7b0ed from main.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/querysets.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 9a1d30c299..2b4283c6c8 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -2519,7 +2519,7 @@ them, but it has a few caveats:
from itertools import islice
batch_size = 100
- ids_iter = range(1000)
+ ids_iter = iter(range(1000))
while ids := list(islice(ids_iter, batch_size)):
batch = Entry.objects.filter(ids__in=ids)
for entry in batch: