Fixed #21552 -- Allowed the use of None for the iexact lookup.

Thanks Anubhav Joshi for the documentation.
This commit is contained in:
Denis Moskalets 2013-12-03 13:24:45 +04:00 committed by Tim Graham
parent 2fd7fc134c
commit d4e578d0f6
4 changed files with 17 additions and 4 deletions

View file

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