diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-23 18:34:32 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-23 18:34:32 +0000 |
| commit | aba518f0f8a20d343a0e2592fdbc7b97ee54006f (patch) | |
| tree | 97a219b9158055e4cc5eba629a87607dc4183fea | |
| parent | 1ec12576f32ba086c101753efefaa2d1d19ffe65 (diff) | |
Removed a relatively pointless QuerySet clone introduced in [8472].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8499 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/models/query.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py index da300a5dd4..2ff1c26344 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -617,10 +617,13 @@ class QuerySet(object): be treated as a single filter. This is only important when it comes to determining when to reuse tables for many-to-many filters. Required so that we can filter naturally on the results of related managers. + + This doesn't return a clone of the current QuerySet (it returns + "self"). The method is only used internally and should be immediately + followed by a filter() that does create a clone. """ - obj = self._clone() - obj._sticky_filter = True - return obj + self._sticky_filter = True + return self def _merge_sanity_check(self, other): """ |
