Changes between Initial Version and Version 1 of Ticket #36453, comment 4


Ignore:
Timestamp:
Jun 12, 2025, 5:04:57 AM (3 months ago)
Author:
Clifford Gama

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36453, comment 4

    initial v1  
    11This is indeed a regression in c1fa3fdd040718356e5a3b9a0fe699d73f47a940.
    22
    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`.
     3I 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`.
    44
    55The 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.
Back to Top