diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2019-01-09 23:54:46 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-09 17:54:46 -0500 |
| commit | 52d06d304180ad21281d1e832be5eaa552ec7c33 (patch) | |
| tree | 2a1d1b95e0646fa77c7fee7102c6b1573be511d6 /docs | |
| parent | bc05547cd8c1dd511c6b6a6c873a1bc63417b111 (diff) | |
Fixed #29968 -- Doc'd that QuerySet.bulk_update() doesn't check for duplicates.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/querysets.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 9dd661e6a7..78eb175329 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2126,6 +2126,7 @@ 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. The ``batch_size`` parameter controls how many objects are saved in a single query. The default is to create all objects in one batch, except for SQLite |
