From 35327455793ddfefb0680135480627a024543aa4 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sun, 20 May 2018 17:27:33 +0100 Subject: [PATCH] Allow the searching of documents by tag #354 --- src/documents/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/admin.py b/src/documents/admin.py index 3d78abab7..3ce2785b5 100644 --- a/src/documents/admin.py +++ b/src/documents/admin.py @@ -124,7 +124,7 @@ class DocumentAdmin(CommonAdmin): "all": ("paperless.css",) } - search_fields = ("correspondent__name", "title", "content") + search_fields = ("correspondent__name", "title", "content", "tags__name") list_display = ("title", "created", "thumbnail", "correspondent", "tags_") list_filter = ("tags", "correspondent", FinancialYearFilter, MonthListFilter)