Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulnarang95 committed Mar 13, 2024
1 parent 9d659ce commit df327bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def _get_changelist_instance(self, menu_content):
request.user = self.get_superuser()
model_admin = self.site._registry[MenuItem]
admin_field = "title"
search_help_text = model_admin.search_help_text

args = [
request, # request
Expand All @@ -71,6 +70,7 @@ def _get_changelist_instance(self, menu_content):
admin_field, # sortable_by
]
if DJANGO_4_2:
search_help_text = model_admin.search_help_text
args.append(search_help_text)

return MenuItemChangeList(*args)
Expand Down

0 comments on commit df327bd

Please sign in to comment.