From 3bc89d23c8067a023712536ad9ab61c5d3741b90 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Wed, 3 Feb 2016 17:20:12 +0000 Subject: [PATCH] Sorting the filters --- src/documents/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/documents/admin.py b/src/documents/admin.py index 6da26a897..f83e23977 100644 --- a/src/documents/admin.py +++ b/src/documents/admin.py @@ -40,10 +40,10 @@ class TagAdmin(admin.ModelAdmin): class DocumentAdmin(admin.ModelAdmin): - search_fields = ("sender__name", "title", "content",) + search_fields = ("sender__name", "title", "content") list_display = ("edit", "created", "sender", "title", "tags_", "document") - list_filter = (MonthListFilter, "tags", "sender") - list_editable = ("sender", "title",) + list_filter = ("tags", "sender", MonthListFilter) + list_editable = ("sender", "title") list_per_page = 25 def edit(self, obj):