From 4f4c515629488be426c9271982d5c60b313b08f1 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sat, 1 Dec 2018 16:21:58 +0000 Subject: [PATCH] Add colours to the tags pages --- src/documents/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/documents/admin.py b/src/documents/admin.py index e61d14815..ff0365a53 100644 --- a/src/documents/admin.py +++ b/src/documents/admin.py @@ -152,6 +152,9 @@ class TagAdmin(CommonAdmin): readonly_fields = ("slug",) + class Media: + js = ("js/colours.js",) + def get_queryset(self, request): qs = super(TagAdmin, self).get_queryset(request) qs = qs.annotate(document_count=models.Count("documents"))