Commit cc44054b authored by Priit Laes's avatar Priit Laes

Simplify the `if` expression a bit

parent be2cec68
......@@ -340,8 +340,7 @@ class ModelView(BaseModelView):
:returns:
``True`` for ``String``, ``Unicode``, ``Text``, ``UnicodeText``
"""
return (name == 'String' or name == 'Unicode' or
name == 'Text' or name == 'UnicodeText')
return name in ('String', 'Unicode', 'Text', 'UnicodeText')
def scaffold_filters(self, name):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment