1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #35381 -- Added JSONNull() expression.

Thanks Jacob Walls for the review.
This commit is contained in:
Clifford Gama
2025-08-07 17:26:15 +02:00
committed by Jacob Walls
parent ab108bf94d
commit adc25a9a66
7 changed files with 213 additions and 10 deletions

View File

@@ -238,6 +238,12 @@ Models
* :meth:`.QuerySet.in_bulk` now supports chaining after
:meth:`.QuerySet.values` and :meth:`.QuerySet.values_list`.
* The new :class:`~django.db.models.JSONNull` expression provides an explicit
way to represent the JSON scalar ``null``. It can be used when saving a
top-level :class:`~django.db.models.JSONField` value, or querying for
top-level or nested JSON ``null`` values. See
:ref:`storing-and-querying-for-none` for usage examples and some caveats.
Pagination
~~~~~~~~~~