Changes between Initial Version and Version 1 of Ticket #35381, comment 5


Ignore:
Timestamp:
May 7, 2024, 11:33:47 AM (6 months ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35381, comment 5

    initial v1  
    771. Introduce `JSONNull`
    882. 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)` link on all other fields
     93. At the end of the deprecation period switch `filter(jsonfield=None)` to mean `filter(jsonfield__isnull=True)` like on all other fields
    1010
    1111It 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.
Back to Top