From 0b6934aee1313e378603c619584dcc8fea96e4c5 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 4 May 2011 10:20:22 -0400 Subject: [PATCH] Fixed document comment side bar link not appearing --- apps/document_comments/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/document_comments/views.py b/apps/document_comments/views.py index e28b20f208..f56a0c353b 100644 --- a/apps/document_comments/views.py +++ b/apps/document_comments/views.py @@ -48,7 +48,7 @@ def comment_delete(request, comment_id=None, comment_id_list=None): 'next': next, } if len(comments) == 1: - context['object'] = comments[0] + context['object'] = comments[0].content_object context['title'] = _(u'Are you sure you wish to delete the comment: %s?') % ', '.join([unicode(d) for d in comments]) elif len(comments) > 1: context['title'] = _(u'Are you sure you wish to delete the comments: %s?') % ', '.join([unicode(d) for d in comments]) @@ -90,4 +90,5 @@ def comment_add(request, document_id): 'form': form, 'title': _(u'Add comment to document: %s') % document, 'next': next, + 'object': document, }, context_instance=RequestContext(request))