Commit 8d4118ce authored by Radomirs Cirskis's avatar Radomirs Cirskis Committed by GitHub

Update view.py

parent 8157362a
......@@ -214,7 +214,7 @@ class ModelView(BaseModelView):
p = getattr(self.model, p)
# Check type
if not isinstance(p, (CharField, TextField, )):
if not isinstance(p, (CharField, TextField)):
raise Exception('Can only search on text columns. ' +
'Failed to setup search for "%s"' % p)
......
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