Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danielquinn committed Nov 3, 2018
1 parent d825667 commit 33abec0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/documents/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ def _determine_fy(self, date):

# 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:
Expand Down Expand Up @@ -146,8 +146,8 @@ def last_correspondence(self, obj):

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")

Expand Down

0 comments on commit 33abec0

Please sign in to comment.