

def clean_grouping(self):
    data = self.cleaned_data['grouping']
    if (not data):
        raise forms.ValidationError(_('Please enter a field to group your data by.'))
    return self

dataset/ETHPy150Open treeio/treeio/treeio/reports/forms.py ChartForm.clean_grouping/VarMisuse@40/65 `data`->`self`