Merge branch 'master' into dev

This commit is contained in:
Anand Doshi 2012-07-13 02:16:54 +05:30
commit 91f731641c

View File

@ -94,6 +94,9 @@ def add_comment(args=None):
website.web_cache.clear_cache(args.get('page_name'),
args.get('comment_doctype'), args.get('comment_docname'))
# loads fresh blog into cache
get_blog_content(args.get('page_name'))
import webnotes.utils
comment['comment_date'] = webnotes.utils.pretty_date(comment['creation'])