From aabb51adcdc0ae326a09ce50a7e2bd064044bf1e Mon Sep 17 00:00:00 2001 From: Goran Topic Date: Mon, 23 Oct 2017 06:29:08 +0000 Subject: [PATCH] Select related in encounter admin --- raidar/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/raidar/admin.py b/raidar/admin.py index 351416f9..72b8718f 100644 --- a/raidar/admin.py +++ b/raidar/admin.py @@ -81,6 +81,7 @@ def url_id_link(self, obj): search_fields = ('=url_id', '=filename', '^area__name', '=characters__name', '^characters__account__name', '=characters__account__user__username', '=tags__name', '=category__name') list_display = ('filename', 'url_id_link', 'area', 'success', 'category', 'started_at', 'duration', 'uploaded_at', 'uploaded_by') + list_select_related = ('category', 'uploaded_by', 'area') inlines = (ParticipationInline,) readonly_fields = ('url_id', 'started_at', 'duration', 'uploaded_at', 'uploaded_by', 'area', 'filename')