

def create_relationship(self, to_obj, name, inverse_name=None, computed=False):
    return Relationship.objects.create_relationship(from_obj=self, to_obj=to_obj, name=name, inverse_name=inverse_name, computed=computed)

dataset/ETHPy150Open wq/wq.db/patterns/relate/models.py RelatedModel.create_relationship/original