def all_valid(fieldset):
    cleaned_data = form.cleaned_data
    count = len([i for i in fieldset if cleaned_data.get(i)])
    return (0 < count < len(fieldset))
def all_valid(fieldset):
    cleaned_data = form.cleaned_data
    count = len([i for i in fieldset if cleaned_data.get(i)])
    return (0 < count < len(fieldset))