From 3fad9f59a44e275cd39b9798c70a7d35f95fcede Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 11 Nov 2014 03:03:08 -0400 Subject: [PATCH] Add the comments related field to the document attributes documentation --- mayan/apps/document_comments/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mayan/apps/document_comments/__init__.py b/mayan/apps/document_comments/__init__.py index baa2a79d4f..d8923784dc 100644 --- a/mayan/apps/document_comments/__init__.py +++ b/mayan/apps/document_comments/__init__.py @@ -5,6 +5,7 @@ from django.contrib.contenttypes import generic from django.utils.translation import ugettext_lazy as _ from acls.api import class_permissions +from common.classes import ModelAttribute from common.utils import encapsulate from documents.models import Document from navigation.api import register_links, register_model_list_columns @@ -45,3 +46,5 @@ register_model_list_columns(Comment, [ register_links(['comments:comments_for_document', 'comments:comment_add', 'comments:comment_delete', 'comments:comment_multiple_delete'], [comment_add], menu_name='sidebar') register_links(Comment, [comment_delete]) register_links(Document, [comments_for_document], menu_name='form_header') + +ModelAttribute(Document, label=_('Comments'), name='comments', type_name='related')