Fixes for django Q query rendering bug
Ensures that the QNodes haven't already been processed Fixes #185
This commit is contained in:
@@ -251,7 +251,8 @@ class QCombination(QNode):
|
||||
|
||||
def accept(self, visitor):
|
||||
for i in range(len(self.children)):
|
||||
self.children[i] = self.children[i].accept(visitor)
|
||||
if isinstance(self.children[i], QNode):
|
||||
self.children[i] = self.children[i].accept(visitor)
|
||||
|
||||
return visitor.visit_combination(self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user