Skip to content

Instantly share code, notes, and snippets.

@dogrunjp
Created April 15, 2014 20:18
Show Gist options
  • Save dogrunjp/10768591 to your computer and use it in GitHub Desktop.
Save dogrunjp/10768591 to your computer and use it in GitHub Desktop.
query object(正確にはModel classのインスタンス)からkey_nameを取得する方法。 key_nameはエンティティのプロパティではなくエンティティの識別子のKeyオブジェクトの要素とのこと。
for val in query:
name = val.key().name()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment