Skip to content

Commit c9846a7

Browse files
committed
fix list_value indexed
1 parent 3b90004 commit c9846a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gcloud/datastore/connection.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,11 @@ def save_entity(self, dataset_id, key_pb, properties,
415415
helpers._set_protobuf_value(prop.value, value)
416416

417417
if name in exclude_from_indexes:
418-
prop.value.indexed = False
418+
if not isinstance(value, list):
419+
prop.value.indexed = False
420+
421+
for sub_value in prop.value.list_value:
422+
sub_value.indexed = False
419423

420424
# If this is in a transaction, we should just return True. The
421425
# transaction will handle assigning any keys as necessary.

0 commit comments

Comments
 (0)