[1.1.X] Fixed #12622 - exists() mentioned in 1.1 docs
Thanks for the report kmike. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ad6368809c
commit
a0ccd50623
@ -74,10 +74,6 @@ You can evaluate a ``QuerySet`` in the following ways:
|
|||||||
if Entry.objects.filter(headline="Test"):
|
if Entry.objects.filter(headline="Test"):
|
||||||
print "There is at least one Entry with the headline Test"
|
print "There is at least one Entry with the headline Test"
|
||||||
|
|
||||||
Note: *Don't* use this if all you want to do is determine if at least one
|
|
||||||
result exists, and don't need the actual objects. It's more efficient to
|
|
||||||
use ``exists()`` (see below).
|
|
||||||
|
|
||||||
.. _pickling QuerySets:
|
.. _pickling QuerySets:
|
||||||
|
|
||||||
Pickling QuerySets
|
Pickling QuerySets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user