Skip to content

Commit 1cce314

Browse files
Merge pull request #2397 from cjmayo/getargspec
Replace inspect.getargspec() that was removed in Python 3.11
2 parents 3e47879 + cf84127 commit 1cce314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_admin/contrib/sqla/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ def _apply_filters(self, query, count_query, joins, count_joins, filters):
999999
try:
10001000
query = flt.apply(query, clean_value, alias)
10011001
except TypeError:
1002-
spec = inspect.getargspec(flt.apply)
1002+
spec = inspect.getfullargspec(flt.apply)
10031003

10041004
if len(spec.args) == 3:
10051005
warnings.warn('Please update your custom filter %s to '

0 commit comments

Comments
 (0)