This commit is contained in:
Jophy Chon Hou Ye 2025-11-16 12:13:13 -05:00 committed by GitHub
commit ca8d0258fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: