Skip to content

Commit

Permalink
Limit number of items in admin media pages
Browse files Browse the repository at this point in the history
  • Loading branch information
krysal committed Nov 20, 2024
1 parent d2e57e4 commit aa207fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/api/admin/media_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"""
Expand Down

0 comments on commit aa207fc

Please sign in to comment.