Fixed typo in bulk_create() documentation.
This commit is contained in:
parent
8c709d79cb
commit
01bfa9219b
|
@ -1988,7 +1988,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…
Reference in New Issue