From cf84127a97d9136ddb718544b2752cb79fe3d363 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Mon, 23 Oct 2023 19:25:54 +0100 Subject: [PATCH] Replace inspect.getargspec() that was removed in Python 3.11 --- flask_admin/contrib/sqla/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '