View source on GitHub |
Store one or more Model
instances.
google.appengine.ext.db.put(
models, **kwargs
)
Args | |
---|---|
models
|
Model instance or list of Model instances.
|
config
|
datastore_rpc.Configuration to use for this request, must be
specified as a keyword argument.
|
Returns | |
---|---|
A Key if models is an instance, a list of Key s in the same order
as models if models is a list.
|
Raises | |
---|---|
TransactionFailedError if the data could not be committed.
|