def parents_of(item):
    """
    Returns list of parents (i.e. object.parent values) starting from the top one (Session)
    """
    parents = [item]
    current = item
    while current.parent is not None:
        parents.append(current.parent)
        current = current.parent
    return parents[::-1]
