From 764af7a3d6c0b543dcf659a2c327f214da768fe4 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Thu, 3 Apr 2025 11:15:27 -0400 Subject: Fixed #36289 -- Fixed bulk_create() crash with nullable geometry fields on PostGIS. Swapped to an allow list instead of a deny list for field types to determine if the UNNEST optimization can be enabled to avoid further surprises with other types that would require further specialization to adapt. Regression in a16eedcf9c69d8a11d94cac1811018c5b996d491. Thanks Joshua Goodwin for the report and Sarah Boyce for the test. --- docs/releases/5.2.1.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.2.1.txt b/docs/releases/5.2.1.txt index b17e63ebd1..0f95eda848 100644 --- a/docs/releases/5.2.1.txt +++ b/docs/releases/5.2.1.txt @@ -15,3 +15,7 @@ Bugfixes * Fixed a regression in Django 5.2 that caused unnecessary queries when prefetching nullable foreign key relationships (:ticket:`36290`). + +* Fixed a regression in Django 5.2 that caused a crash of + ``QuerySet.bulk_create()`` with nullable geometry fields on PostGIS + (:ticket:`36289`). -- cgit v1.3