Skip to content

Commit

Permalink
Fixed #9255: Removed now-obsolete warning about the old semantics of …
Browse files Browse the repository at this point in the history
…__exact=None vs. __isnull=True

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
ubernostrum committed Sep 30, 2008
1 parent 8e608c2 commit 73c0db8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/ref/models/querysets.txt
Expand Up @@ -1182,14 +1182,6 @@ SQL equivalent::


SELECT ... WHERE pub_date IS NULL; SELECT ... WHERE pub_date IS NULL;


.. admonition:: ``__isnull=True`` vs ``__exact=None``

There is an important difference between ``__isnull=True`` and
``__exact=None``. ``__exact=None`` will *always* return an empty result
set, because SQL requires that no value is equal to ``NULL``.
``__isnull`` determines if the field is currently holding the value
of ``NULL`` without performing a comparison.

search search
~~~~~~ ~~~~~~


Expand Down

0 comments on commit 73c0db8

Please sign in to comment.