Changes between Initial Version and Version 1 of Ticket #36453, comment 4
- Timestamp:
- Jun 12, 2025, 5:04:57 AM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36453, comment 4
initial v1 1 1 This is indeed a regression in c1fa3fdd040718356e5a3b9a0fe699d73f47a940. 2 2 3 The problem is that we are now passing on `for_save` to `Case`'s source expressions, and resolving `When.condition` with `for_save=True`. 3 I think the problem is that we are now passing on `for_save=True` from the update to `Case`'s source expressions, which ends up resolving `When.condition` with `for_save=True`. 4 4 5 5 The issue is related to #36445 in that they both expose problems related to the use of `Value(None, JSONField())` to mean `JSON null` and None to mean `NULL`, and how that is implemented depending on whether `JSONFIeld.get_db_prep_save` is called. I think these set of tickets should be an argument in favour of introducing a `JSONNull` value as outlined in ticket:35381#comment:5.