mirror of
https://github.com/django/django.git
synced 2025-08-02 10:02:41 +00:00
[2.0.x] Fixed typo in bulk_create() documentation.
Backport of 01bfa9219b
from master
This commit is contained in:
parent
58ad942736
commit
781a337242
1 changed files with 1 additions and 1 deletions
|
@ -2010,7 +2010,7 @@ This has a number of caveats though:
|
||||||
from itertools import islice
|
from itertools import islice
|
||||||
|
|
||||||
batch_size = 100
|
batch_size = 100
|
||||||
objs = (Entry(headling'Test %s' % i) for i in range(1000))
|
objs = (Entry(headline='Test %s' % i) for i in range(1000))
|
||||||
while True:
|
while True:
|
||||||
batch = list(islice(objs, batch_size))
|
batch = list(islice(objs, batch_size))
|
||||||
if not batch:
|
if not batch:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue