@LazyProperty
def artifact(self):
    'Look up the artifact referenced'
    aref = self.artifact_reference
    try:
        cls = loads(six.binary_type(aref.cls))
        with h.push_context(aref.project_id):
            return cls.query.get(_id=aref.artifact_id)
    except Exception:
        log.exception('Error loading artifact for %s: %r', self._id, aref)
Look up the artifact referenced
@LazyProperty
def artifact(self):
    
    aref = self.artifact_reference
    try:
        cls = loads(six.binary_type(aref.cls))
        with h.push_context(aref.project_id):
            return cls.query.get(_id=aref.artifact_id)
    except Exception:
        log.exception('Error loading artifact for %s: %r', self._id, aref)