Skip to content

Commit

Permalink
Django 4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
marianmazarovici committed Jan 16, 2022
1 parent 3075a7c commit 44bb1da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ def get_model_queryset(admin_site, model, request, preserved_filters=None):
change_list_args.append(model_admin.search_help_text)
except AttributeError:
# django version < 4.0
pass
change_list_args.append(None)

try:
cl = ChangeList(*change_list_args)
queryset = cl.get_queryset(request)
Expand Down

0 comments on commit 44bb1da

Please sign in to comment.