Added a submission state filter to the submission admin page.

- Legacy-Id: 14169
This commit is contained in:
Henrik Levkowetz 2017-09-27 14:15:31 +00:00
parent d0583f4f02
commit 328c6c6ab8

View file

@ -6,6 +6,7 @@ from ietf.submit.models import Preapproval, Submission, SubmissionEvent, Submiss
class SubmissionAdmin(admin.ModelAdmin): class SubmissionAdmin(admin.ModelAdmin):
list_display = ['id', 'rev', 'draft_link', 'status_link', 'submission_date',] list_display = ['id', 'rev', 'draft_link', 'status_link', 'submission_date',]
list_filter = ['state', ]
ordering = [ '-id' ] ordering = [ '-id' ]
search_fields = ['name', ] search_fields = ['name', ]
raw_id_fields = ['group', 'draft'] raw_id_fields = ['group', 'draft']