def METHOD_NAME(self, instance):
    """
    If the ballot is marked as cancelled, return True. Otherwise check if
    it was uncontested, as we may know this before it has been marked as
    cancelled in EE.
    """
    if instance.cancelled:
        return True
    return instance.uncontested