diff options
| author | KimSia Sim <245021+simkimsia@users.noreply.github.com> | 2023-11-22 21:29:30 +0800 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-11-29 11:57:53 +0100 |
| commit | c9ce764f59c1e809b210337980ae10c4b1d0f9be (patch) | |
| tree | aa2d41869806bea22b81d5ece8450857409c7de7 /docs/ref | |
| parent | 272ceb9584a68c7df464e8633c02eb4f997da092 (diff) | |
Updated conditions to retrieve primary keys in bulk_create() docs.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/querysets.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index b9f263f709..0118cf4e5b 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2432,10 +2432,10 @@ 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. * It does not work with child models in a multi-table inheritance scenario. -* If the model's primary key is an :class:`~django.db.models.AutoField`, the - primary key attribute can only be retrieved on certain databases (currently - PostgreSQL, MariaDB, and SQLite 3.35+). On other databases, it will not be - set. +* If the model's primary key is an :class:`~django.db.models.AutoField` and + ``ignore_conflicts`` is False, the primary key attribute can only be + retrieved on certain databases (currently PostgreSQL, MariaDB, and SQLite + 3.35+). On other databases, it will not be set. * It does not work with many-to-many relationships. * It casts ``objs`` to a list, which fully evaluates ``objs`` if it's a generator. The cast allows inspecting all objects so that any objects with a |
