mirror of
https://github.com/django/django.git
synced 2025-03-31 19:46:42 +00:00
Removed unused Q.clone().
Unused since afe0bb7b13bb8dc4370f32225238012c873b0ee3.
This commit is contained in:
parent
901dc90db0
commit
b454e2cbc9
@ -76,16 +76,6 @@ class Q(tree.Node):
|
|||||||
obj.negate()
|
obj.negate()
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
def clone(self):
|
|
||||||
clone = self.__class__._new_instance(
|
|
||||||
children=[], connector=self.connector, negated=self.negated)
|
|
||||||
for child in self.children:
|
|
||||||
if hasattr(child, 'clone'):
|
|
||||||
clone.children.append(child.clone())
|
|
||||||
else:
|
|
||||||
clone.children.append(child)
|
|
||||||
return clone
|
|
||||||
|
|
||||||
def resolve_expression(self, query=None, allow_joins=True, reuse=None, summarize=False, for_save=False):
|
def resolve_expression(self, query=None, allow_joins=True, reuse=None, summarize=False, for_save=False):
|
||||||
# We must promote any new joins to left outer joins so that when Q is
|
# We must promote any new joins to left outer joins so that when Q is
|
||||||
# used as an expression, rows aren't filtered due to joins.
|
# used as an expression, rows aren't filtered due to joins.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user