]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
admin: fix series query
authorJan Remmet <j.remmet@phytec.de>
Mon, 25 May 2020 07:03:10 +0000 (09:03 +0200)
committerStephen Finucane <stephen@that.guru>
Mon, 25 May 2020 10:30:31 +0000 (11:30 +0100)
remove typo from search_fields.

Signed-off-by: Jan Remmet <j.remmet@phytec.de>
Signed-off-by: Stephen Finucane <stephen@that.guru>
(cherry picked from commit 7e5d2e64e2a51a7c4b789888e93788d5ad8875c8)

patchwork/admin.py

index c3d45240f1eb1b8794aa4aade07a81f799451b36..b55eb431c97be2ff6283d26126cedd8e2feec299 100644 (file)
@@ -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, )