

def clean(self):
    cleaned_data = super(SaveForm, self).clean()
    if self.errors:
        return
    save = cleaned_data.get('save')
    name = cleaned_data.get('name')
    if (save and (not name)):
        raise forms.ValidationError(_('Enter a name.'))
    return self

dataset/ETHPy150Open cloudera/hue/apps/beeswax/src/beeswax/forms.py SaveForm.clean/VarMisuse@76/97 `cleaned_data`->`self`