fix: cleanup about/projects

This commit is contained in:
Rushabh Mehta
2019-05-03 12:59:06 +05:30
parent 6da60ff0d5
commit ca80f590f9
2 changed files with 4 additions and 2 deletions

View File

@@ -5,6 +5,8 @@
from __future__ import unicode_literals from __future__ import unicode_literals
# import frappe # import frappe
from frappe.model.document import Document from frappe.model.document import Document
from frappe.website.render import clear_cache as clear_website_cache
class FoundationProject(Document): class FoundationProject(Document):
pass def validate(self):
clear_website_cache()

View File

@@ -20,7 +20,7 @@
<h5> <h5>
{{ item.title }} {{ item.title }}
</h5> </h5>
<div>{{ item.description }}</div> <div>{{ html2text(item.description) }}</div>
<div class="text-muted mt-3"> <div class="text-muted mt-3">
{{ frappe.format_date(item.project_date) }} {{ frappe.format_date(item.project_date) }}
<span class='pull-right'>{{ item.status }}</span> <span class='pull-right'>{{ item.status }}</span>