Skip to content

Commit 81c2d81

Browse files
jmfedericovdboor
authored andcommitted
FilteredRelation cannot be used as arg, only kwarg
1 parent 817b7bc commit 81c2d81

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

polymorphic/query.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,6 @@ def tree_node_test___lookup(my_model, node):
293293
tree_node_test___lookup(my_model, child)
294294

295295
tree_node_test___lookup(self.model, a)
296-
elif isinstance(a, FilteredRelation):
297-
test___lookup(a.condition)
298296
elif hasattr(a, "get_source_expressions"):
299297
for source_expression in a.get_source_expressions():
300298
test___lookup(source_expression)

0 commit comments

Comments
 (0)