summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClifford Gama <cliffygamy@gmail.com>2025-10-21 11:34:58 +0200
committerJacob Walls <jacobtylerwalls@gmail.com>2025-10-29 15:00:52 -0400
commitbe7f68422d4c6ae568a17f1fa91aac67d284df82 (patch)
treeff051b66bd991593959d3dd4d39e7e3d71a95ba0 /docs
parentadc25a9a6696f7e2ab6181aabce3a23e027d6703 (diff)
Refs #35381 -- Delegated ArrayField element prepping to base_field.get_db_prep_save.
Previously, ArrayField always used base_field.get_db_prep_value when saving, which could differ from how base_field prepares data for save. This change overrides ArrayField.get_db_prep_save to delegate to the base_field's get_db_prep_save, ensuring elements like None in JSONField arrays are saved correctly as SQL NULL instead of JSON null.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/6.1.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/releases/6.1.txt b/docs/releases/6.1.txt
index bb8f686f84..412ec692e3 100644
--- a/docs/releases/6.1.txt
+++ b/docs/releases/6.1.txt
@@ -319,6 +319,15 @@ backends.
* Support for PostGIS 3.1 is removed.
+:mod:`django.contrib.postgres`
+------------------------------
+
+* Top-level elements set to ``None`` in an
+ :class:`~django.contrib.postgres.fields.ArrayField` with a
+ :class:`~django.db.models.JSONField` base field are now saved as SQL ``NULL``
+ instead of the JSON ``null`` primitive. This matches the behavior of a
+ standalone :class:`~django.db.models.JSONField` when storing ``None`` values.
+
Dropped support for PostgreSQL 14
---------------------------------