mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Add colours to the tags pages
This commit is contained in:
parent
c1f926a40c
commit
4f4c515629
@ -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"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user