get_ancestors

EquationPluginModel.get_ancestors()
Returns

A queryset containing the current node object’s ancestors, starting by the root node and descending to the parent.