def METHOD_NAME(candidacy):
    prefix = ""
    suffix = ""
    candidate_result = getattr(candidacy, "result", None)
    if candidate_result:
        # Then we're OK to display this result:
        suffix += "<br>"
        if candidacy.elected:
            suffix += '<span class="candidate-result-confirmed candidate-result-confirmed-elected">Elected!</span>'
        else:
            suffix += '<span class="candidate-result-confirmed candidate-result-confirmed-not-elected">Not elected</span>'
        suffix += ' <span class="vote-count">({} votes)</span>'.format(
            candidate_result.num_ballots
        )
        suffix += "<br>"
        suffix += " <span>{} / {} candidates </span>".format(
            ordinal(candidate_result.rank),
            candidacy.ballot.membership_set.count(),
        )
        suffix += "<br>"
    return prefix, suffix