def METHOD_NAME(self, instance, commit=True):
    opts = instance.__class__._meta
    if self.errors:
        raise ValueError(
            "The %s could not be changed because the data "
            "didn't validate." % opts.object_name
        )
    data = self.cleaned_data
    # Update the instance
    for f in opts.fields:
        if f.name not in data:
            continue
        field = self.fields.get(f.name, None)
        if not field:
            continue
        if field.is_no_change(data[f.name]):
            continue
        setattr(instance, f.name, data[f.name])
    if commit:
        instance.METHOD_NAME()
    return instance