Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
Fixes enormously long page loading time caused by loading all possibl…
Browse files Browse the repository at this point in the history
…e values into the filter form.
  • Loading branch information
emorozov committed Dec 1, 2020
1 parent 93e5ef2 commit 6a53142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http_stubs/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def has_add_permission(self, *args, **kwargs) -> bool:
return False

list_display = ('pk', 'date', 'http_stub', 'source_ip')

list_filter = ('date', 'method', 'path', 'source_ip')
list_filter = ('date', 'method')
search_fields = ('path', 'source_ip')


@admin.register(models.HTTPStub)
Expand Down

0 comments on commit 6a53142

Please sign in to comment.