def __str__(self):
        if (self.from_content_type_id or self.type_id and
                self.to_content_type_id):
            return '%s %s %s' % (self.left, self.reltype, self.right)
        else:
            return 'Undefined'
dataset/ETHPy150Open wq/wq.db/patterns/relate/models.py/Relationship.__str__/operator `and` -> `or`