Commit b0ec5d04 authored by ChCh27's avatar ChCh27

Update view.py

self is the third arg for filter apply
parent e28a1c59
...@@ -897,7 +897,7 @@ class ModelView(BaseModelView): ...@@ -897,7 +897,7 @@ class ModelView(BaseModelView):
except TypeError: except TypeError:
spec = inspect.getargspec(flt.apply) spec = inspect.getargspec(flt.apply)
if len(spec.args) == 2: if len(spec.args) == 3:
warnings.warn('Please update your custom filter %s to include additional `alias` parameter.' % repr(flt)) warnings.warn('Please update your custom filter %s to include additional `alias` parameter.' % repr(flt))
else: else:
raise raise
......
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