def save(self, commit=True):
if self.errors:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>" % self.instance._meta.object_name)<EOL><DEDENT>instance = super(BaseDynamicEntityForm, self).save(commit=False)<EOL>for name in instance.get_schema_names():<EOL><INDENT>value = self.cleaned_data.get(name)<EOL>setattr(instance, name, value)<EOL><DEDENT>if commit:<EOL><INDENT>instance.save()<EOL><DEDENT>return instance<EOL>
Saves this ``form``'s cleaned_data into model instance ``self.instance``
and related EAV attributes.

Returns ``instance``.