From 479670e4e13587b62b8b231e3540f01404d6ca86 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 3 Feb 2012 16:56:18 +0530 Subject: [PATCH] added unicode to mysql, fix in about us --- .../website/doctype/about_us_settings/about_us_settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/website/doctype/about_us_settings/about_us_settings.py b/erpnext/website/doctype/about_us_settings/about_us_settings.py index 8a31ff098e..770f1d2bce 100644 --- a/erpnext/website/doctype/about_us_settings/about_us_settings.py +++ b/erpnext/website/doctype/about_us_settings/about_us_settings.py @@ -14,11 +14,11 @@ class DocType: path = os.path.join(os.path.dirname(__file__), 'template.html') self.doc.about_team = webnotes.conn.sql("""select * from `tabAbout Us Team` - where parent='About Us Settings'""", as_dict=1) + where parent='About Us Settings' order by idx""", as_dict=1) import markdown2 for t in self.doc.about_team: - t['bio'] = markdown2.markdown(t['bio']) + t['bio'] = markdown2.markdown(t.get('bio') or '') webnotes.conn.set_value('Page', 'about', 'title', self.doc.headline) webnotes.conn.set_value('Page', 'about', 'content', make_template(self.doc, path))