Skip to content

Commit

Permalink
Fix bool exprs in filters
Browse files Browse the repository at this point in the history
  • Loading branch information
daanvdk committed Jul 16, 2024
1 parent d6ec9ba commit 3d761fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binder/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def q_get_flat_filters(q):
if isinstance(child, Q):
# If the child is another Q-object we can just yield recursively
yield from q_get_flat_filters(child)
else:
elif isinstance(child, tuple):
# So now the child is a 2-tuple of filter & value, we just need the
# filter so we yield that
yield child[0]
Expand Down

0 comments on commit 3d761fa

Please sign in to comment.