From 1d15c732bb9dde0fca8bd662a475bb51d0ab2756 Mon Sep 17 00:00:00 2001 From: Clifford Gama Date: Fri, 9 Jan 2026 22:19:36 +0200 Subject: Refs #35381 -- Added missing deprecation note for using None as RHS of JSONExact. --- docs/internals/deprecation.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 2473d2b4f7..280187b368 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -59,6 +59,11 @@ details on these changes. * Calling :meth:`.QuerySet.values_list` with ``flat=True`` and no field name will raise ``TypeError``. +* The use of ``None`` when querying a :class:`~django.db.models.JSONField` + top-level value will compile to SQL ``IS NULL``. Use + :class:`~django.db.models.JSONNull` to query for a JSON ``null`` value + instead. + .. _deprecation-removed-in-6.1: 6.1 -- cgit v1.3