mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Refs #30841 -- Made isnull lookup raise ValueError for non-boolean values.
Per deprecation timeline.
This commit is contained in:
parent
12ac4916af
commit
396da8b94c
4 changed files with 8 additions and 27 deletions
|
@ -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``
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue