Made Query.check_filterable() use bool by default instead of str.
@@ -1114,7 +1114,7 @@ class Query(BaseExpression):
def check_filterable(self, expression):
"""Raise an error if expression cannot be used in a WHERE clause."""
- if not getattr(expression, 'filterable', 'True'):
+ if not getattr(expression, 'filterable', True):
raise NotSupportedError(
expression.__class__.__name__ + ' is disallowed in the filter '
'clause.'
