mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #36419 -- Ensured for_save was propagated when resolving expressions.
Some checks failed
Docs / docs (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
Some checks failed
Docs / docs (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled
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 00c690efbc
.
Thanks to David Sanders and Simon Charette for reviews.
Co-authored-by: Adam Johnson <me@adamj.eu>
This commit is contained in:
parent
9579517552
commit
c1fa3fdd04
3 changed files with 21 additions and 2 deletions
|
@ -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`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue