Skip to content

Commit

Permalink
Replace inspect.getargspec() that was removed in Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmayo committed Oct 23, 2023
1 parent 14e24c9 commit cf84127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_admin/contrib/sqla/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down

0 comments on commit cf84127

Please sign in to comment.