summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2019-12-11 22:34:28 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-12-30 08:30:44 +0100
commit7db4ab84394f5ffa588d5d968f6b76178740fb51 (patch)
tree7205b47b298f0bcf8b1a967bc3c8434bc3f78d8f /docs
parent0f8041abd5bf0977d28b676445d35a81c6b7b5de (diff)
[3.0.x] Fixed #31071 -- Disabled insert optimization for primary keys with defaults when loading fixtures.
Model.save_base() is called directly when loading fixtures and assumes existing rows will be updated. Branching of "raw" allows to maintain the optimization introduced in #29260 while supporting this edge case. Regression in 85458e94e38c20e57939947ee515a1a53689659f. Thanks Reupen Shah for the report. Backport of 5779cc938a34eb96815c7a40ded2c8f6c8087c58 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.0.2.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/3.0.2.txt b/docs/releases/3.0.2.txt
index ebb85d1f46..e232fa81f8 100644
--- a/docs/releases/3.0.2.txt
+++ b/docs/releases/3.0.2.txt
@@ -18,3 +18,7 @@ Bugfixes
* Fixed a regression in Django 3.0 that caused a migration crash on PostgreSQL
10+ when adding a foreign key and changing data in the same migration
(:ticket:`31106`).
+
+* Fixed a regression in Django 3.0 where loading fixtures crashed for models
+ defining a :attr:`~django.db.models.Field.default` for the primary key
+ (:ticket:`31071`).