From 89c7454dbdae3e0df6d96aa6132205d05e4a9b3d Mon Sep 17 00:00:00 2001 From: Thomas Chaumeny Date: Fri, 7 Jul 2023 13:08:17 +0200 Subject: Fixed #34698 -- Made QuerySet.bulk_create() retrieve primary keys when updating conflicts. --- docs/ref/models/querysets.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index a754953264..fd6bb39ff8 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2411,9 +2411,13 @@ On databases that support it (all except Oracle and SQLite < 3.24), setting the SQLite, in addition to ``update_fields``, a list of ``unique_fields`` that may be in conflict must be provided. -Enabling the ``ignore_conflicts`` or ``update_conflicts`` parameter disable -setting the primary key on each model instance (if the database normally -support it). +Enabling the ``ignore_conflicts`` parameter disables setting the primary key on +each model instance (if the database normally supports it). + +.. versionchanged:: 5.0 + + In older versions, enabling the ``update_conflicts`` parameter prevented + setting the primary key on each model instance. .. warning:: -- cgit v1.3