summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-07 20:50:36 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-01-14 17:50:04 +0100
commit396da8b94c62cf955ab401eb40a952b7edba0376 (patch)
treead78e90e36aa104fefa591cddbfb4f831a0f33da /docs
parent12ac4916af034221a4e08ce6b5669e53a0223a67 (diff)
Refs #30841 -- Made isnull lookup raise ValueError for non-boolean values.
Per deprecation timeline.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/querysets.txt5
-rw-r--r--docs/releases/4.0.txt3
2 files changed, 3 insertions, 5 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index eca0caf6d6..d09089a55e 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -3424,11 +3424,6 @@ SQL equivalent:
SELECT ... WHERE pub_date IS NULL;
-.. deprecated:: 3.1
-
- Using non-boolean values as the right-hand side is deprecated, use ``True``
- or ``False`` instead. In Django 4.0, the exception will be raised.
-
.. fieldlookup:: regex
``regex``
diff --git a/docs/releases/4.0.txt b/docs/releases/4.0.txt
index 3f3d46617e..ba90639928 100644
--- a/docs/releases/4.0.txt
+++ b/docs/releases/4.0.txt
@@ -268,3 +268,6 @@ See :ref:`deprecated-features-3.1` for details on these changes, including how
to remove usage of these features.
* The ``PASSWORD_RESET_TIMEOUT_DAYS`` setting is removed.
+
+* The :lookup:`isnull` lookup no longer allows using non-boolean values as the
+ right-hand side.