Skip to content

Commit

Permalink
Removed a relatively pointless QuerySet clone introduced in [8472].
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8499 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Aug 23, 2008
1 parent 1ec1257 commit aba518f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions django/db/models/query.py
Expand Up @@ -617,10 +617,13 @@ def _next_is_sticky(self):
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):
"""
Expand Down

0 comments on commit aba518f

Please sign in to comment.