refactor: Replace render imports
This commit is contained in:
parent
5c6d3e043c
commit
2f8a742aa8
@ -1,6 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
import frappe.website.render
|
||||
from frappe.website.utils import clear_cache
|
||||
|
||||
def execute():
|
||||
for item_code in frappe.db.sql_list("""select distinct variant_of from `tabItem`
|
||||
@ -12,4 +12,4 @@ def execute():
|
||||
item.make_route()
|
||||
item.db_set("route", item.route, update_modified=False)
|
||||
|
||||
frappe.website.render.clear_cache()
|
||||
clear_cache()
|
||||
|
@ -8,7 +8,7 @@ from frappe import _
|
||||
from frappe.utils import nowdate, cint, cstr
|
||||
from frappe.utils.nestedset import NestedSet
|
||||
from frappe.website.website_generator import WebsiteGenerator
|
||||
from frappe.website.render import clear_cache
|
||||
from frappe.website.utils import clear_cache
|
||||
from frappe.website.doctype.website_slideshow.website_slideshow import get_slideshow
|
||||
from erpnext.shopping_cart.product_info import set_product_info_for_website
|
||||
from erpnext.utilities.product import get_qty_in_stock
|
||||
|
@ -18,7 +18,7 @@ from frappe.utils.html_utils import clean_html
|
||||
from frappe.website.doctype.website_slideshow.website_slideshow import \
|
||||
get_slideshow
|
||||
|
||||
from frappe.website.render import clear_cache
|
||||
from frappe.website.utils import clear_cache
|
||||
from frappe.website.website_generator import WebsiteGenerator
|
||||
|
||||
from six import iteritems
|
||||
|
Loading…
Reference in New Issue
Block a user