Skip to content

Commit

Permalink
Merge pull request #751 from ImageMarkup/isic-150-improve-admin-speed
Browse files Browse the repository at this point in the history
Improve admin page speed for image download stats
  • Loading branch information
danlamanna committed Aug 15, 2023
2 parents 63cfa42 + bd6848c commit 9d86dad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions isic/stats/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class ImageDownloadAdmin(StaffReadonlyAdmin):
search_fields = ["image__isic__id", "ip_address", "user_agent"]
search_help_text = "Search by ISIC ID, IP Address, or User Agent."
list_filter = [DownloadedWithIsicCliFilter]
# Don't show the full count on filtered admin pages, since it's slow.
show_full_result_count = False

autocomplete_fields = ["image"]

Expand Down

0 comments on commit 9d86dad

Please sign in to comment.