Commit 1a15fd28 authored by Paul Brown's avatar Paul Brown

add varchar to is_text_column_type

parent 346e4517
...@@ -427,12 +427,12 @@ class ModelView(BaseModelView): ...@@ -427,12 +427,12 @@ class ModelView(BaseModelView):
Verify if the provided column type is text-based. Verify if the provided column type is text-based.
:returns: :returns:
``True`` for ``String``, ``Unicode``, ``Text``, ``UnicodeText`` ``True`` for ``String``, ``Unicode``, ``Text``, ``UnicodeText``, ``varchar``
""" """
if name: if name:
name = name.lower() name = name.lower()
return name in ('string', 'unicode', 'text', 'unicodetext') return name in ('string', 'unicode', 'text', 'unicodetext', 'varchar')
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