From c22fd83f3e5263062a7d162d3fad2c6ef1a2740f Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 2 Jul 2015 02:15:36 -0400 Subject: [PATCH] Add smart document count to document tag list view. --- mayan/apps/tags/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mayan/apps/tags/views.py b/mayan/apps/tags/views.py index 1606edf859..e5f1a3a0e4 100644 --- a/mayan/apps/tags/views.py +++ b/mayan/apps/tags/views.py @@ -251,6 +251,9 @@ class DocumentTagListView(TagListView): def get_extra_context(self): return { + 'extra_columns': [ + {'name': _('Documents'), 'attribute': encapsulate(lambda instance: TagListView.get_document_count(instance=instance, user=self.request.user))}, + ], 'hide_link': True, 'object': self.document, 'title': _('Tags for document: %s') % self.document,