def METHOD_NAME(self, instance):
    if not instance.submission:
        return ''
    contest = instance.submission.problem_instance.contest
    href = reverse(
        'submission',
        kwargs={'contest_id': contest.id, 'submission_id': instance.submission.id},
    )
    return make_html_link(href, instance.submission.id)