[PATCH 1/1] admin: fix series query

Jan Remmet j.remmet at phytec.de
Mon May 25 17:03:10 AEST 2020


remove typo from search_fields.

Signed-off-by: Jan Remmet <j.remmet at phytec.de>
---
 patchwork/admin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/patchwork/admin.py b/patchwork/admin.py
index c3d45240f1eb..b55eb431c97b 100644
--- a/patchwork/admin.py
+++ b/patchwork/admin.py
@@ -126,7 +126,7 @@ class SeriesAdmin(admin.ModelAdmin):
     list_filter = ('project', 'submitter')
     list_select_related = ('submitter', 'project')
     readonly_fields = ('received_total', 'received_all')
-    search_fields = ('submitter_name', 'submitter_email')
+    search_fields = ('submitter__name', 'submitter__email')
     exclude = ('patches', )
     inlines = (PatchInline, )
 
-- 
2.17.1



More information about the Patchwork mailing list