Skip to content

Commit

Permalink
Add event log admin type list filter
Browse files Browse the repository at this point in the history
  • Loading branch information
bertini36 committed Jan 27, 2021
1 parent bf3f742 commit 917cea1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions billing/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ class EventLogAdmin(admin.ModelAdmin):
list_display = ('created', 'type', 'text', link_to_account)
ordering = ('-created',)
list_display_links = None
list_filter = ('type',)

def get_queryset(self, request):
return super().get_queryset(request).prefetch_related('account')
Expand Down

0 comments on commit 917cea1

Please sign in to comment.