From f29714c5aada8aff0b8a3412c52443d274737909 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 17 Oct 2014 19:59:40 -0400 Subject: [PATCH] Update code to remove a tag from a document --- mayan/apps/tags/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/tags/views.py b/mayan/apps/tags/views.py index e23f5fd7fe..dda21eded7 100644 --- a/mayan/apps/tags/views.py +++ b/mayan/apps/tags/views.py @@ -324,7 +324,7 @@ def tag_remove(request, document_id=None, document_id_list=None, tag_id=None, ta 'document': document, 'tag': tag} ) else: - document.tags.remove(tag) + tag.documents.remove(document) messages.success(request, _(u'Tag "%(tag)s" removed successfully from document "%(document)s".') % { 'document': document, 'tag': tag} )