diff --git a/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.py b/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.py index 2a8ce0e4..e6ce66f6 100644 --- a/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.py +++ b/foundation/erpnext_foundation/doctype/foundation_project/foundation_project.py @@ -5,6 +5,8 @@ from __future__ import unicode_literals # import frappe from frappe.model.document import Document +from frappe.website.render import clear_cache as clear_website_cache class FoundationProject(Document): - pass + def validate(self): + clear_website_cache() diff --git a/foundation/www/about/projects.html b/foundation/www/about/projects.html index 41aff422..d77907ec 100644 --- a/foundation/www/about/projects.html +++ b/foundation/www/about/projects.html @@ -20,7 +20,7 @@
{{ item.title }}
-
{{ item.description }}
+
{{ html2text(item.description) }}
{{ frappe.format_date(item.project_date) }} {{ item.status }}