mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #35381 -- Deprecated using None in JSONExact rhs to mean JSON null.
Key and index lookups are exempt from the deprecation. Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
This commit is contained in:
committed by
Jacob Walls
parent
be7f68422d
commit
348ca84538
@@ -360,6 +360,13 @@ Miscellaneous
|
||||
is deprecated. Pass an explicit field name, like
|
||||
``values_list("pk", flat=True)``.
|
||||
|
||||
* The use of ``None`` to represent a top-level JSON scalar ``null`` when
|
||||
querying :class:`~django.db.models.JSONField` is now deprecated in favor of
|
||||
the new :class:`~django.db.models.JSONNull` expression. At the end
|
||||
of the deprecation period, ``None`` values compile to SQL ``IS NULL`` when
|
||||
used as the top-level value. :lookup:`Key and index lookups <jsonfield.key>`
|
||||
are unaffected by this deprecation.
|
||||
|
||||
Features removed in 6.1
|
||||
=======================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user