Skip to content

Commit

Permalink
Merge pull request #87 from jgeewax/86-fix-dataset-reference
Browse files Browse the repository at this point in the history
Fix #86 - Entity objects from a query have a proper Dataset reference
  • Loading branch information
jgeewax committed Apr 22, 2014
2 parents 4b56a23 + 86b886e commit 9654c3b
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 @@ -244,4 +244,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 9654c3b

Please sign in to comment.