]> 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:02:32 +0000 (11:02 +0100)
remove typo from search_fields.

Signed-off-by: Jan Remmet <j.remmet@phytec.de>
Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/admin.py

index a65022245bcf618e11983727e73fd980f91e279d..5823a00a11aad985aa35f1d693a46e24ef8c4a35 100644 (file)
@@ -134,7 +134,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, )