Fixes for django Q query rendering bug
Ensures that the QNodes haven't already been processed Fixes #185
This commit is contained in:
parent
cae3f3eeff
commit
5e8604967c
2 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue