versionify only if explicit, frappe/erpnext#1439

This commit is contained in:
Rushabh Mehta 2014-03-06 11:12:33 +05:30
parent 1e49beac47
commit 4b2c57d13d

View file

@ -37,7 +37,7 @@ class WebsiteGenerator(DocListController):
def on_update(self):
self.update_sitemap()
if self.save_versions:
if getattr(self, "save_versions", False):
frappe.add_version(self.doclist)
def after_rename(self, olddn, newdn, merge):