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): ...@@ -340,8 +340,7 @@ class ModelView(BaseModelView):
:returns: :returns:
``True`` for ``String``, ``Unicode``, ``Text``, ``UnicodeText`` ``True`` for ``String``, ``Unicode``, ``Text``, ``UnicodeText``
""" """
return (name == 'String' or name == 'Unicode' or return name in ('String', 'Unicode', 'Text', 'UnicodeText')
name == 'Text' or name == 'UnicodeText')
def scaffold_filters(self, name): 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