diff options
| author | Georgios Verigakis <verigak@gmail.com> | 2026-03-28 15:24:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-28 09:24:05 -0400 |
| commit | 4fd9e85b6031e7ddf878b280f324da6b98f7b0ed (patch) | |
| tree | 22bb5f847592786e16852a986203b284cd374a1c /docs | |
| parent | a1188fc76ae4d9ff3b82feacd1ddd7b38b3e6009 (diff) | |
Refs #36526 -- Fixed bulk_update() batching example in docs.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/querysets.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 9ec45653de..6a76fc2703 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2535,7 +2535,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: |
