def validation_yesno(value, obj=None):
    if string.upper(value) in ["YES","NO"]:
        return True, string.capitalize(value)
    else:
        return False, value
Validates that yes or no is entered.
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/utils.py/validation_yesno