Commit ee2567c0 authored by Artem Serga's avatar Artem Serga

Encoding error

parent 78a75fd6
...@@ -874,9 +874,11 @@ class BaseModelView(BaseView, ActionsMixin): ...@@ -874,9 +874,11 @@ class BaseModelView(BaseView, ActionsMixin):
try: try:
return column_fmt(self, context, model, name) return column_fmt(self, context, model, name)
except TypeError: except TypeError:
warnings.warn('Column formatter prototype was changed to accept view as first input parameter.\n' + warnings.warn(
'Please update %s %s formatter to accept 4 parameters.' % (self.name, name), u'Column formatter prototype was changed to accept view as first input parameter.\n'
stacklevel=2) u'Please update %s %s formatter to accept 4 parameters.' % (self.name, name),
stacklevel=2
)
self.column_formatters[name] = lambda _, c, m, n: column_fmt(c, m, n) self.column_formatters[name] = lambda _, c, m, n: column_fmt(c, m, n)
return column_fmt(context, model, name) return column_fmt(context, model, 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