Add the comment to the template context

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-23 19:30:04 -04:00
parent d790efdef5
commit 2300ab52de

View File

@@ -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(),
}