

def save(self, *args, **kwargs):
    rightct = self.reltype.right
    self.right = rightct.get_object_for_this_type(pk=self.right_object_id)
    super(Relationship, self).save(*args, **kwargs)
    self._reset_dict_cache()

dataset/ETHPy150Open wq/wq.db/patterns/relate/models.py Relationship.save/original