From f0ac116d663ebb2466a7ded0798f3199fbf003f1 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Sun, 9 Jun 2013 13:27:12 +0530 Subject: [PATCH] [blog] permission fix --- website/helpers/blog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/helpers/blog.py b/website/helpers/blog.py index 82fad74c9c..bbbd9c5091 100644 --- a/website/helpers/blog.py +++ b/website/helpers/blog.py @@ -81,7 +81,7 @@ def add_comment(args=None): # since comments are embedded in the page, clear the web cache webnotes.webutils.clear_cache(page_name) - args['comment_date'] = webnotes.utils.global_date_format(comment['creation']) + args['comment_date'] = webnotes.utils.global_date_format(comment.doc.creation) template_args = { 'comment_list': [args], 'template': 'app/website/templates/html/comment.html' } # get html of comment row