Skip to content

Commit

Permalink
FilteredRelation cannot be used as arg, only kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfederico authored and vdboor committed Nov 18, 2021
1 parent 817b7bc commit 81c2d81
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions polymorphic/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ def tree_node_test___lookup(my_model, node):
tree_node_test___lookup(my_model, child)

tree_node_test___lookup(self.model, a)
elif isinstance(a, FilteredRelation):
test___lookup(a.condition)
elif hasattr(a, "get_source_expressions"):
for source_expression in a.get_source_expressions():
test___lookup(source_expression)
Expand Down

0 comments on commit 81c2d81

Please sign in to comment.