From adc25a9a6696f7e2ab6181aabce3a23e027d6703 Mon Sep 17 00:00:00 2001 From: Clifford Gama Date: Thu, 7 Aug 2025 17:26:15 +0200 Subject: Fixed #35381 -- Added JSONNull() expression. Thanks Jacob Walls for the review. --- docs/ref/models/expressions.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs/ref/models') diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index fa5b4b9540..037d7520a3 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -575,6 +575,18 @@ available on other expressions. ``ExpressionWrapper`` is necessary when using arithmetic on ``F()`` expressions with different types as described in :ref:`using-f-with-annotations`. +``JSONNull()`` expression +------------------------- + +.. versionadded:: 6.1 + +.. class:: JSONNull() + +Specialized expression to represent JSON scalar ``null`` on a +:class:`~django.db.models.JSONField`. + +See :ref:`storing-and-querying-for-none` for usage examples. + Conditional expressions ----------------------- -- cgit v1.3