[3.2.x] Fixed #32388 -- Clarified QuerySet.bulk_update() caveat about duplicates for multiple batches.

Backport of 241da3f06e from master
This commit is contained in:
Timothy McCurrach 2021-01-27 11:25:31 +00:00 committed by Mariusz Felisiak
parent ba71cf38ea
commit e95a60bb64
1 changed files with 2 additions and 1 deletions

View File

@ -2249,7 +2249,8 @@ them, but it has a few caveats:
``batch_size``.
* Updating fields defined on multi-table inheritance ancestors will incur an
extra query per ancestor.
* If ``objs`` contains duplicates, only the first one is updated.
* When an individual batch contains duplicates, only the first instance in that
batch will result in an update.
The ``batch_size`` parameter controls how many objects are saved in a single
query. The default is to update all objects in one batch, except for SQLite