Skip to content

Commit

Permalink
Merge pull request #2397 from cjmayo/getargspec
Browse files Browse the repository at this point in the history
Replace inspect.getargspec() that was removed in Python 3.11
  • Loading branch information
samuelhwilliams authored Jul 13, 2024
2 parents 3e47879 + cf84127 commit 1cce314
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 1cce314

Please sign in to comment.