@frappe.whitelist()
def get_linked_doctypes(doctype):
 return frappe.cache().hget(u'linked_doctypes', doctype, (lambda : _get_linked_doctypes(doctype)))

@ frappe . whitelist ( ) def get_linked_doctypes ( doctype ) : return frappe . cache ( ) . hget ( u'linked_doctypes' , doctype , ( lambda : _get_linked_doctypes ( doctype ) ) )
add list of doctypes this doctype is linked with .