mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #21552 -- Allowed the use of None for the iexact lookup.
Thanks Anubhav Joshi for the documentation.
This commit is contained in:
parent
2fd7fc134c
commit
d4e578d0f6
4 changed files with 17 additions and 4 deletions
|
@ -2028,9 +2028,15 @@ iexact
|
|||
|
||||
Case-insensitive exact match.
|
||||
|
||||
.. versionchanged:: 1.7
|
||||
|
||||
If the value provided for comparision is ``None``, it will be interpreted
|
||||
as an SQL ``NULL`` (see :lookup:`isnull` for more details).
|
||||
|
||||
Example::
|
||||
|
||||
Blog.objects.get(name__iexact='beatles blog')
|
||||
Blog.objects.get(name__iexact=None)
|
||||
|
||||
SQL equivalent::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue