Skip to content

Commit

Permalink
Fixed googleapis#86 - Entity objects from a fetched query have a prop…
Browse files Browse the repository at this point in the history
…er Dataset reference.
  • Loading branch information
jgeewax committed Apr 22, 2014
1 parent 1431fa2 commit 81f109e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcloud/datastore/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,4 +311,5 @@ def fetch(self, limit=None):
entity_pbs = self.dataset().connection().run_query(
query_pb=clone.to_protobuf(), dataset_id=self.dataset().id())

return [Entity.from_protobuf(entity) for entity in entity_pbs]
return [Entity.from_protobuf(entity, dataset=self.dataset())
for entity in entity_pbs]

0 comments on commit 81f109e

Please sign in to comment.