Skip to content

Commit ad7bff9

Browse files
tmszivdboor
authored andcommitted
fix q node child type, work with the django-advanced-filters app
1 parent 5191989 commit ad7bff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polymorphic/query_translate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def tree_node_correct_field_specs(my_model, node):
6666
for i in range(len(node.children)):
6767
child = node.children[i]
6868

69-
if type(child) == tuple:
69+
if type(child) == tuple or type(child) == list:
7070
# this Q object child is a tuple => a kwarg like Q( instance_of=ModelB )
7171
key, val = child
7272
new_expr = _translate_polymorphic_filter_definition(

0 commit comments

Comments
 (0)