def METHOD_NAME(value):
    """
    Fields cannot be empty or only contain spaces.
    :param value: value to validate (str or None)
    :return:
    """
    if value is None or not value.strip():
        raise ValidationError(_("Le champs ne peut être vide"))