From aa207fcac348c00e82fd7875d0dc68327f245b84 Mon Sep 17 00:00:00 2001 From: Krystle Salazar Date: Wed, 20 Nov 2024 13:29:59 -0400 Subject: [PATCH] Limit number of items in admin media pages --- api/api/admin/media_report.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/api/admin/media_report.py b/api/api/admin/media_report.py index 045966a180f..0f0a8848a40 100644 --- a/api/api/admin/media_report.py +++ b/api/api/admin/media_report.py @@ -499,6 +499,8 @@ def has_sensitive_text(self, obj): change_list_template = "admin/api/media/change_list.html" list_display = ("identifier",) list_display_links = ("identifier",) + list_per_page = 15 + list_max_show_all = 50 search_fields = (None,) # Search functionality is overridden below. search_help_text = format_html( """