mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Used a nontemporal example in QuerySet.bulk_create() in docs.
This commit is contained in:
@@ -1881,9 +1881,8 @@ efficient manner (generally only 1 query, no matter how many objects there
|
||||
are)::
|
||||
|
||||
>>> Entry.objects.bulk_create([
|
||||
... Entry(headline="Django 1.0 Released"),
|
||||
... Entry(headline="Django 1.1 Announced"),
|
||||
... Entry(headline="Breaking: Django is awesome")
|
||||
... Entry(headline='This is a test'),
|
||||
... Entry(headline='This is only a test'),
|
||||
... ])
|
||||
|
||||
This has a number of caveats though:
|
||||
|
||||
Reference in New Issue
Block a user