From f2aa1b93e09202707453d26f0648cd9aaf57e4ec Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Fri, 23 Feb 2007 23:05:25 +0000 Subject: [PATCH] Fixed silly typo in [4651]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4563 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/db/models/query.py b/django/db/models/query.py index e16a35cce9..5b2c18b25e 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -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 = ()