From ca80f590f9fdca28477d0cec4ab6e6efa689984d Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 3 May 2019 12:59:06 +0530 Subject: [PATCH] fix: cleanup about/projects --- .../doctype/foundation_project/foundation_project.py | 4 +++- foundation/www/about/projects.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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 }}