def put ( self , entity ) : actual_entity = _normalize_entity ( entity ) if actual_entity is None : return self . ndb_put ( entity ) self . puts . append ( actual_entity )
how to add entity in datastore python
Registers entity to put to datastore .
def put(self, entity):
    """Registers entity to put to datastore.

    Args:
      entity: an entity or model instance to put.
    """
    actual_entity = _normalize_entity(entity)
    if actual_entity is None:
      return self.ndb_put(entity)
    self.puts.append(actual_entity)