From 33abec06631c53379140413de40dedb5450012f6 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sat, 3 Nov 2018 11:05:22 +0000 Subject: [PATCH] Code cleanup --- src/documents/admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/documents/admin.py b/src/documents/admin.py index 5a5a1a50c..6c0424a74 100644 --- a/src/documents/admin.py +++ b/src/documents/admin.py @@ -61,12 +61,12 @@ class FinancialYearFilter(admin.SimpleListFilter): # To keep it simple we use the same string for both # query parameter and the display. - return (query, query) + return query, query else: query = "{0}-{0}".format(date.year) display = "{}".format(date.year) - return (query, display) + return query, display def lookups(self, request, model_admin): if not settings.FY_START or not settings.FY_END: @@ -146,8 +146,8 @@ class CorrespondentAdmin(CommonAdmin): class TagAdmin(CommonAdmin): - list_display = ("name", "colour", "match", "matching_algorithm", - "document_count") + list_display = ( + "name", "colour", "match", "matching_algorithm", "document_count") list_filter = ("colour", "matching_algorithm") list_editable = ("colour", "match", "matching_algorithm")