coerce markdown2.UnicodeWithAttrs to unicode in blog comments

This commit is contained in:
Anand Doshi 2012-08-17 23:36:11 +05:30
parent 5fc48f566f
commit 25dd92dbdb

View File

@ -92,7 +92,7 @@ def add_comment(args=None):
import website.web_cache
if not args: args = webnotes.form_dict
args['comment'] = markdown2.markdown(args.get('comment') or '')
args['comment'] = unicode(markdown2.markdown(args.get('comment') or ''))
comment = webnotes.widgets.form.comments.add_comment(args)