def fix_lineage(cls, req, ret=True):
    """set lineage throughout"""
    s = cls.get(2)
    s.parent = 1
    s.flush()
    s = cls.get(1)
    s.lineage = '.'
    s.flush()
    s.set_descendant_lineage()
    if ret:
        req.message = 'lineage fixed!'
        return cls.get(1).view(req)
