From 2300ab52dee06d686415e88796f79f2c4289588b Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 23 Apr 2019 19:30:04 -0400 Subject: [PATCH] Add the comment to the template context Signed-off-by: Roberto Rosario --- mayan/apps/document_comments/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mayan/apps/document_comments/views.py b/mayan/apps/document_comments/views.py index 9750b8d3fa..18a26baf9f 100644 --- a/mayan/apps/document_comments/views.py +++ b/mayan/apps/document_comments/views.py @@ -79,6 +79,8 @@ class DocumentCommentDeleteView(SingleObjectDeleteView): def get_extra_context(self): return { + 'comment': self.get_object(), + 'navigation_object_list': ('object', 'comment'), 'object': self.get_object().document, 'title': _('Delete comment: %s?') % self.get_object(), }