db.key is assigned if you set a the key_name attribute. So I understand your question
my_entity = my_model(key_name = 'abc') my_entity.put() my_entity.key().name returns the key_name i.e. : abc On 7 juin, 09:29, Tom Wu <[email protected]> wrote: > Hi All, > > Since the db.key is auto generate by system. We can't assign the value of > db.key. > > If ReferenceProperty can reference with key_name, it will make easier for us > to backup and restore the Reference model. > > Just a idea for me, Any suggestion will be appreciated. > > Best Regards > Tom Wu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
