'Returns the information about the user\'s certificate in the course.'

def get_certificate(self, model):

    certificate_info = certificate_downloadable_status(model.user, model.course_id)
    if certificate_info['is_downloadable']:
        return {'url': self.context['request'].build_absolute_uri(certificate_info['download_url'])}
    else:
        return {}
