Fixed silly typo in [4651].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2007-02-23 23:05:25 +00:00
parent e7aab3a474
commit f2aa1b93e0
1 changed files with 2 additions and 2 deletions

View File

@ -202,8 +202,8 @@ class QuerySet(object):
simply returns the length of the cached results set to avoid multiple
SELECT COUNT(*) calls.
"""
if self._results_cache is not None:
return len(self._results_cache)
if self._result_cache is not None:
return len(self._result_cache)
counter = self._clone()
counter._order_by = ()