def save_to(self, obj):
if isinstance(obj, dict):<EOL><INDENT>obj = dict(obj)<EOL><DEDENT>for key in self.changed_fields:<EOL><INDENT>if key in self.cleaned_data:<EOL><INDENT>val = self.cleaned_data.get(key)<EOL>set_obj_value(obj, key, val)<EOL><DEDENT><DEDENT>return obj<EOL>
Save the cleaned data to an object.