1
0
mirror of https://github.com/django/django.git synced 2025-06-17 01:19:12 +00:00
django/tests/expressions
Clifford Gama 1d89691c74 [5.2.x] Fixed #36453 -- Made When.condition resolve with for_save=False.
Value(None, JSONField()) when used in When.condition incorrectly resolved with
for_save=True, resulting in the value being serialized as SQL NULL instead of
JSON null.

Regression in c1fa3fdd040718356e5a3b9a0fe699d73f47a940.

Thanks to Thomas McKay for the report, and to David Sanders and Simon Charettes
for the review.

Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>

Backport of 104cbfd44b9eff010daf0ef0e1ce434385855b13 from main.
2025-06-16 10:41:24 +02:00
..