def check_no_back_links_exist(self):
		from frappe.model.delete_doc import check_if_doc_is_linked, check_if_doc_is_dynamically_linked
		if not self.flags.ignore_links:
			check_if_doc_is_linked(self, method="Cancel")
			check_if_doc_is_dynamically_linked(self, method="Cancel")
Check if document links to any active document before Cancel.
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.check_no_back_links_exist