[minor] Fix default website style patch (reload doc)

This commit is contained in:
Pratik Vyas 2014-10-09 11:22:12 +05:30
parent 7ddde8dc3a
commit e435592d64

View File

@ -2,6 +2,7 @@ import frappe
from frappe.templates.pages.style_settings import default_properties
def execute():
frappe.reload_doc('website', 'doctype', 'style_settings')
style_settings = frappe.get_doc("Style Settings", "Style Settings")
if not style_settings.apply_style:
style_settings.update(default_properties)