From ea0d724ede4f673970937e80186c12cd2962d79a Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 1 Jul 2015 17:24:39 -0400 Subject: [PATCH] Don't display number of documents in a tag, causes extra query, give information even if user is not allowed to see which documents are tagged can now if there are documents tagged. --- mayan/apps/tags/apps.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mayan/apps/tags/apps.py b/mayan/apps/tags/apps.py index a003dff06d..28eb363126 100644 --- a/mayan/apps/tags/apps.py +++ b/mayan/apps/tags/apps.py @@ -54,7 +54,6 @@ class TagsApp(MayanAppConfig): SourceColumn(source=Document, label=_('Tags'), attribute=encapsulate(lambda document: widget_inline_tags(document))) SourceColumn(source=Tag, label=_('Preview'), attribute=encapsulate(lambda tag: widget_single_tag(tag))) - SourceColumn(source=Tag, label=_('Tagged items'), attribute=encapsulate(lambda tag: tag.documents.count())) document_search.add_model_field(field='tags__label', label=_('Tags'))