'Returns a list of all the ancestor of this model as a list. Useful for
determining if something is an ancestor, regardless of lineage.'

def get_parent_list(self):

    result = set()
    for parent in self.parents:
        result.add(parent)
        result.update(parent._meta.get_parent_list())
    return result
