def __get__(self, instance, instance_type=None):
        if instance is None:
            return self
        try:
            return getattr(instance, self.cache_name)
        except __HOLE__:
            params = {'%s__pk' % self.related.field.name: instance._get_pk_val()}
            rel_obj = self.related.model._base_manager.get(**params)
            setattr(instance, self.cache_name, rel_obj)
            return rel_obj
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/models/fields/related.py/SingleRelatedObjectDescriptor.__get__