We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a5d73f commit f17e865Copy full SHA for f17e865
adminapi/filters.py
@@ -12,8 +12,10 @@
12
13
class BaseFilter(object):
14
def __init__(self, value):
15
- ok_datatypes = tuple([bool, int, float] + [s[0] for s in STR_BASED_DATATYPES])
16
- if type(self) is BaseFilter and isinstance(value, ok_datatypes):
+ ok_datatypes = tuple([int, float] + [s[0] for s in STR_BASED_DATATYPES])
+ if type(self) is BaseFilter and isinstance(value, bool):
17
+ pass
18
+ elif isinstance(value, ok_datatypes):
19
pass
20
elif isinstance(value, str):
21
for char in '\'"':
0 commit comments