mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Updated conditions to retrieve primary keys in bulk_create() docs.
This commit is contained in:
parent
272ceb9584
commit
c9ce764f59
@ -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
|
* The model's ``save()`` method will not be called, and the ``pre_save`` and
|
||||||
``post_save`` signals will not be sent.
|
``post_save`` signals will not be sent.
|
||||||
* It does not work with child models in a multi-table inheritance scenario.
|
* 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
|
* If the model's primary key is an :class:`~django.db.models.AutoField` and
|
||||||
primary key attribute can only be retrieved on certain databases (currently
|
``ignore_conflicts`` is False, the primary key attribute can only be
|
||||||
PostgreSQL, MariaDB, and SQLite 3.35+). On other databases, it will not be
|
retrieved on certain databases (currently PostgreSQL, MariaDB, and SQLite
|
||||||
set.
|
3.35+). On other databases, it will not be set.
|
||||||
* It does not work with many-to-many relationships.
|
* It does not work with many-to-many relationships.
|
||||||
* It casts ``objs`` to a list, which fully evaluates ``objs`` if it's a
|
* 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
|
generator. The cast allows inspecting all objects so that any objects with a
|
||||||
|
Loading…
Reference in New Issue
Block a user