refactor: using cached property

This commit is contained in:
Aradhya 2022-09-05 16:04:38 +05:30
parent ae18f74311
commit 520c8503a8

View file

@ -349,7 +349,7 @@ class Engine:
continue
# Nested set support
if isinstance(value, (list, tuple)):
if value in OPERATOR_MAP["nested_set"]:
if value in self.OPERATOR_MAP["nested_set"]:
field = frappe.meta.get_field("name")
ref_doctype = field.options if field else table
lft, rgt = "", ""