Skip to content

Commit c9ce764

Browse files
simkimsiafelixxm
authored andcommitted
Updated conditions to retrieve primary keys in bulk_create() docs.
1 parent 272ceb9 commit c9ce764

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/ref/models/querysets.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2432,10 +2432,10 @@ This has a number of caveats though:
24322432
* The model's ``save()`` method will not be called, and the ``pre_save`` and
24332433
``post_save`` signals will not be sent.
24342434
* It does not work with child models in a multi-table inheritance scenario.
2435-
* If the model's primary key is an :class:`~django.db.models.AutoField`, the
2436-
primary key attribute can only be retrieved on certain databases (currently
2437-
PostgreSQL, MariaDB, and SQLite 3.35+). On other databases, it will not be
2438-
set.
2435+
* If the model's primary key is an :class:`~django.db.models.AutoField` and
2436+
``ignore_conflicts`` is False, the primary key attribute can only be
2437+
retrieved on certain databases (currently PostgreSQL, MariaDB, and SQLite
2438+
3.35+). On other databases, it will not be set.
24392439
* It does not work with many-to-many relationships.
24402440
* It casts ``objs`` to a list, which fully evaluates ``objs`` if it's a
24412441
generator. The cast allows inspecting all objects so that any objects with a

0 commit comments

Comments
 (0)