def clean_data(self, name, raw_data):
    form = self.get_form_class(name)(data=raw_data)
    return (form.cleaned_data[name] if form.is_valid() else None)
def clean_data(self, name, raw_data):
    form = self.get_form_class(name)(data=raw_data)
    return (form.cleaned_data[name] if form.is_valid() else None)