diff options
| author | girishsontakke <girishsontakke7@gmail.com> | 2021-04-06 21:50:31 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-04-07 20:09:56 +0200 |
| commit | 98abc0c90e0eb7fe3a71cfa360962cf59605f1d3 (patch) | |
| tree | 3e660de54ec94caa11ab8ef14e98f8cbf231abc0 /docs | |
| parent | 3f2920ae1d91e67ebf677d407da528c04188384e (diff) | |
Fixed #32501 -- Added support for returning fields from INSERT statements on SQLite 3.35+.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/querysets.txt | 7 | ||||
| -rw-r--r-- | docs/releases/4.0.txt | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index e874211a54..dbca894715 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2171,7 +2171,8 @@ This has a number of caveats though: * 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 and MariaDB 10.5+). On other databases, it will not be set. + PostgreSQL, MariaDB 10.5+, 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 @@ -2210,6 +2211,10 @@ normally supports it). .. _MySQL documentation: https://dev.mysql.com/doc/refman/en/sql-mode.html#ignore-strict-comparison .. _MariaDB documentation: https://mariadb.com/kb/en/ignore/ +.. versionchanged:: 4.0 + + Support for the fetching primary key attributes on SQLite 3.35+ was added. + ``bulk_update()`` ~~~~~~~~~~~~~~~~~ diff --git a/docs/releases/4.0.txt b/docs/releases/4.0.txt index 656cf23fa8..a3429b6baf 100644 --- a/docs/releases/4.0.txt +++ b/docs/releases/4.0.txt @@ -230,6 +230,9 @@ Models :class:`Round() <django.db.models.functions.Round>` database function allows specifying the number of decimal places after rounding. +* :meth:`.QuerySet.bulk_create` now sets the primary key on objects when using + SQLite 3.35+. + Requests and Responses ~~~~~~~~~~~~~~~~~~~~~~ |
