summaryrefslogtreecommitdiff
path: root/docs/releases/5.2.3.txt
diff options
context:
space:
mode:
authorClifford Gama <cliffygamy@gmail.com>2025-05-26 16:44:08 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-06-06 17:40:35 +0200
commitc1fa3fdd040718356e5a3b9a0fe699d73f47a940 (patch)
tree7ca4b4a2a4a5bf1149c4bc7ee13c8533c61865c2 /docs/releases/5.2.3.txt
parent957951755259b412d5113333b32bf85871d29814 (diff)
Fixed #36419 -- Ensured for_save was propagated when resolving expressions.
The for_save flag wasn't properly propagated when resolving expressions, which prevented get_db_prep_save() from being called in some cases. This affected fields like JSONField where None would be saved as JSON null instead of SQL NULL. Regression in 00c690efbc0b10f67924687f24a7b30397bf47d9. Thanks to David Sanders and Simon Charette for reviews. Co-authored-by: Adam Johnson <me@adamj.eu>
Diffstat (limited to 'docs/releases/5.2.3.txt')
-rw-r--r--docs/releases/5.2.3.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/5.2.3.txt b/docs/releases/5.2.3.txt
index 5aaa7fd2dd..927ec16d34 100644
--- a/docs/releases/5.2.3.txt
+++ b/docs/releases/5.2.3.txt
@@ -13,3 +13,7 @@ Bugfixes
* Fixed a log injection possibility by migrating remaining response logging
to ``django.utils.log.log_response()``, which safely escapes arguments such
as the request path to prevent unsafe log output (:cve:`2025-48432`).
+
+* Fixed a regression in Django 5.2 that caused :meth:`.QuerySet.bulk_update` to
+ incorrectly convert ``None`` to JSON ``null`` instead of SQL ``NULL`` for
+ ``JSONField`` (:ticket:`36419`).