Browse Source

Avoid N queries in Pings admin list view

pull/9/head
Pēteris Caune 9 years ago
parent
commit
b19477106e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hc/api/admin.py

+ 1
- 1
hc/api/admin.py View File

@ -49,7 +49,7 @@ class ChecksAdmin(admin.ModelAdmin):
@admin.register(Ping)
class PingsAdmin(admin.ModelAdmin):
search_fields = ("owner__name", "owner__code", "owner__user__email")
list_select_related = ("owner", )
list_select_related = ("owner", "owner__user")
list_display = ("id", "created", "check_name", "email", "scheme", "method",
"ua")
list_filter = ("created", "scheme", "method")


Loading…
Cancel
Save