Skip to content

Commit 15a507e

Browse files
committed
document the save_entity will ignore properties whose value is empty list or none value
1 parent 9e2d1f0 commit 15a507e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gcloud/datastore/connection.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,10 @@ def save_entity(self, dataset_id, key_pb, properties,
380380
will be replaced by those passed in 'properties'; properties
381381
not passed in 'properties' no longer be set for the entity.
382382
383+
.. note::
384+
When saving an entity to the backend, properties whose value are
385+
Empty lists or none cannot be saved and will be ignore.
386+
383387
:type dataset_id: string
384388
:param dataset_id: The dataset in which to save the entity.
385389

0 commit comments

Comments
 (0)