[hotfix] import in page
This commit is contained in:
parent
eb2839a0b8
commit
fa708c5ac1
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ from __future__ import unicode_literals
|
|||
import frappe
|
||||
from frappe.model.document import Document
|
||||
from frappe.build import html_to_js_template
|
||||
from frappe import conf
|
||||
from frappe import conf, _
|
||||
|
||||
class Page(Document):
|
||||
def autoname(self):
|
||||
|
|
@ -72,7 +72,7 @@ class Page(Document):
|
|||
|
||||
allowed = [d.role for d in frappe.get_all("Page Role", fields=["role"],
|
||||
filters={"parent": self.name})]
|
||||
|
||||
|
||||
if not allowed:
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue