def model_save(self, commit=True):
 if self.errors:
  raise ValueError(("The %s could not be created because the data didn't validate." % self._model._meta.object_name))
 return save_instance(self, self._model(), commit)

def model_save ( self , commit = True ) : if self . errors : raise ValueError ( ( "The %s could not be created because the data didn't validate." % self . _model . _meta . object_name ) ) return save_instance ( self , self . _model ( ) , commit )
creates and returns model instance according to self .