I'm using this extensively so I wanted to add more information in case other developers find this thread.
On Apr 24, 12:14 pm, 风笑雪 <[email protected]> wrote: > query_results = my_query.get()key = query_results.key() .key() in a function .key in a Django template ...yields just the long alphanumeric string that the Datastore uses internally. .key().name() in a function .key.name in a Django template ...yields the custom key_name you used when creating the entity. There are other instance methods on the Key class to get the id, or id_or_name, etc.: http://code.google.com/appengine/docs/python/datastore/keyclass.html#Key_name --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
