Refs #30841 -- Made isnull lookup raise ValueError for non-boolean values.

Per deprecation timeline.
This commit is contained in:
Mariusz Felisiak 2021-01-07 20:50:36 +01:00
parent 12ac4916af
commit 396da8b94c
4 changed files with 8 additions and 27 deletions

View file

@ -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``