Add the comment to the template context
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user