Commit 960b4d2b authored by Paul Brown's avatar Paul Brown

show a flash message when validation fails

parent d9bd2876
...@@ -1114,6 +1114,8 @@ class BaseModelView(BaseView, ActionsMixin): ...@@ -1114,6 +1114,8 @@ class BaseModelView(BaseView, ActionsMixin):
if flt.validate(value): if flt.validate(value):
filters.append((pos, (idx, flt.clean(value)))) filters.append((pos, (idx, flt.clean(value))))
else:
flash(gettext('Invalid Filter Value: ' + value))
# Sort filters # Sort filters
return [v[1] for v in sorted(filters, key=lambda n: n[0])] return [v[1] for v in sorted(filters, key=lambda n: n[0])]
......
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