mirror of
https://github.com/django/django.git
synced 2025-11-17 02:24:22 +00:00
Merge 3f674121b1 into 5c60763561
This commit is contained in:
commit
ca8d0258fb
1 changed files with 2 additions and 1 deletions
|
|
@ -2430,7 +2430,7 @@ are), and returns created objects as a list, in the same order as provided:
|
|||
... ]
|
||||
... )
|
||||
|
||||
This has a number of caveats though:
|
||||
This method is atomic, i.e., all batches of creation succeed or none. This has a number of caveats though:
|
||||
|
||||
* The model's ``save()`` method will not be called, and the ``pre_save`` and
|
||||
``post_save`` signals will not be sent.
|
||||
|
|
@ -2508,6 +2508,7 @@ updated:
|
|||
>>> Entry.objects.bulk_update(objs, ["headline"])
|
||||
2
|
||||
|
||||
This method is atomic, i.e., all batches of updates succeed or none.
|
||||
:meth:`.QuerySet.update` is used to save the changes, so this is more efficient
|
||||
than iterating through the list of models and calling ``save()`` on each of
|
||||
them, but it has a few caveats:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue