'Circular dependency detection -- if someone tries to set
this as a parent of a document it\'s a child of, they\'re gonna
have a bad time.'

def is_child_of(self, other):

    return (other.id in (d.id for d in self.parents))
