From 643e9870fe9384b979ec589acd7f6ec4f18ad3fa Mon Sep 17 00:00:00 2001 From: Daan van der Kallen Date: Tue, 16 Jul 2024 14:09:23 +0200 Subject: [PATCH] Fix bool exprs in filters --- binder/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binder/views.py b/binder/views.py index 5dec93e2..4bec60f8 100644 --- a/binder/views.py +++ b/binder/views.py @@ -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]