Changes between Initial Version and Version 1 of Ticket #35381, comment 5
- Timestamp:
- May 7, 2024, 11:33:47 AM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35381, comment 5
initial v1 7 7 1. Introduce `JSONNull` 8 8 2. Make `filter(jsonfield=None)` raise a deprecation warning pointing at either using `filter(jsonfield__isnull=True)` or `filter(jsonfield=JSONNull)` 9 3. At the end of the deprecation period switch `filter(jsonfield=None)` to mean `filter(jsonfield__isnull=True)` li nkon all other fields9 3. At the end of the deprecation period switch `filter(jsonfield=None)` to mean `filter(jsonfield__isnull=True)` like on all other fields 10 10 11 11 It leaves the problem of having JSON `null` not surviving a round trip to the database as both SQL `NULL` and `json.loads("null")` are turned into Python `None` but that's a different issue that can be addressed with a specialized `decoder` if users require it.