Commit 8a25ce88 authored by Paul Brown's avatar Paul Brown

make validation error more translator friendly, thx @jirikuncar

parent 960b4d2b
...@@ -1115,7 +1115,7 @@ class BaseModelView(BaseView, ActionsMixin): ...@@ -1115,7 +1115,7 @@ 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: else:
flash(gettext('Invalid Filter Value: ' + value)) flash(gettext('Invalid Filter Value: %(value)s', 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