diff --git a/flask_admin/contrib/sqla/view.py b/flask_admin/contrib/sqla/view.py index d8f2043f7..6886e0702 100755 --- a/flask_admin/contrib/sqla/view.py +++ b/flask_admin/contrib/sqla/view.py @@ -999,7 +999,7 @@ def _apply_filters(self, query, count_query, joins, count_joins, filters): try: query = flt.apply(query, clean_value, alias) except TypeError: - spec = inspect.getargspec(flt.apply) + spec = inspect.getfullargspec(flt.apply) if len(spec.args) == 3: warnings.warn('Please update your custom filter %s to '