def validate(self, value):
        super(FilterField, self).validate(value)
        for filter_conf in value:
            if filter_conf.get('format', None) not in ['', 'Choice', 'Date', 'Numeric']:
                raise forms.ValidationError("Invalid filter format!")
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/userreports/reports/builder/forms.py/FilterField.validate/original