diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-06-07 20:18:17 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-06-07 20:18:17 +0000 |
| commit | b564f6c66136633b2ec0b27c5762c5911a487b2c (patch) | |
| tree | 7d1c069c80b9dba93b2b48166ff5eeb134093ebc /django/db/models/query.py | |
| parent | 8690f66f4a92077fda8890869a2b0efde30d70f3 (diff) | |
[soc2010/query-refactor] Moved has_results (implementation of exists()) onto the compiler, where it belongs.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/query-refactor@13334 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/query.py')
| -rw-r--r-- | django/db/models/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py index a2a82f85ee..812e1c82b7 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -493,7 +493,7 @@ class QuerySet(object): def exists(self): if self._result_cache is None: - return self.query.has_results(using=self.db) + return self.query.get_compiler(self.db).has_results() return bool(self._result_cache) ################################################## |
