aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2018-11-02 17:34:10 +0000
committerStephen Finucane <stephen@that.guru>2018-12-25 20:11:22 +0000
commit05ab6870f10bb99e763ecc7d2f3fe3777e611924 (patch)
treed168fa2627982380f7e0166bd96b3d088c86e0ad
parent04f382b79322d981138a67693777da791b704749 (diff)
downloadpatchwork-05ab6870f10bb99e763ecc7d2f3fe3777e611924.tar
patchwork-05ab6870f10bb99e763ecc7d2f3fe3777e611924.tar.gz
admin: Show series.submitter in admin view
Display this by default and allow filtering by it. While we're here, also allow patches to be filtered by submitter. Signed-off-by: Stephen Finucane <stephen@that.guru>
-rw-r--r--patchwork/admin.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/patchwork/admin.py b/patchwork/admin.py
index 9254167..546e516 100644
--- a/patchwork/admin.py
+++ b/patchwork/admin.py
@@ -88,7 +88,7 @@ admin.site.register(CoverLetter, SubmissionAdmin)
class PatchAdmin(admin.ModelAdmin):
list_display = ('name', 'submitter', 'project', 'state', 'date',
'archived', 'is_pull_request')
- list_filter = ('project', 'state', 'archived')
+ list_filter = ('project', 'submitter', 'state', 'archived')
list_select_related = ('submitter', 'project', 'state')
search_fields = ('name', 'submitter__name', 'submitter__email')
date_hierarchy = 'date'
@@ -119,8 +119,10 @@ class PatchInline(admin.StackedInline):
class SeriesAdmin(admin.ModelAdmin):
- list_display = ('name', 'date', 'submitter', 'version', 'total',
+ list_display = ('name', 'submitter', 'project', 'date', 'version', 'total',
'received_total', 'received_all')
+ list_filter = ('project', 'submitter')
+ list_select_related = ('submitter', 'project')
readonly_fields = ('received_total', 'received_all')
search_fields = ('submitter_name', 'submitter_email')
exclude = ('patches', )