Assign a parent to an existing entity
问题 I have a datastore which is already populated with entities. However, they haven't been arranged into entity groups (a.k.a parent-child relationships). My entity Kinds are: team = Team.get_by_key_name('Plants') query = Plants.all() The plants haven't been assigned to the Plants team yet: query = Plants.all().ancestor(team) plants = query.fetch(50) # This will result in an empty list I would like to assign them to the team now: query = Plants.all() plants = query.fetch(50) for p in plants: #