From df327bd3256bec9a7532c77822dab9ca5e5a18d6 Mon Sep 17 00:00:00 2001 From: Vipul Narang Date: Wed, 13 Mar 2024 13:08:55 +0530 Subject: [PATCH] fix failing tests --- tests/test_admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_admin.py b/tests/test_admin.py index b0d5157b5..30d1a9b69 100644 --- a/tests/test_admin.py +++ b/tests/test_admin.py @@ -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 @@ -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)