diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-02-23 23:05:25 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-02-23 23:05:25 +0000 |
| commit | f2aa1b93e09202707453d26f0648cd9aaf57e4ec (patch) | |
| tree | 737bc773129adb0e273e905df153b9fec3ce08bb | |
| parent | e7aab3a474bf4f26a84323bbfff92bf340087e2f (diff) | |
Fixed silly typo in [4651].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/models/query.py | 4 |
1 files 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 = () |
