From 426fc3edbfcb6fef71543382314970f4ec967cfb Mon Sep 17 00:00:00 2001 From: howinator Date: Tue, 3 Oct 2017 23:50:44 -0500 Subject: [PATCH] Change comment in ndb snippets to object property Before this change, the documentation indicated that key property would be on the Account class instead of the account object. This changes that to properly reflect the key property is on the object. --- appengine/standard/ndb/entities/snippets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appengine/standard/ndb/entities/snippets.py b/appengine/standard/ndb/entities/snippets.py index e42705b9da1..a8ecaf0d352 100644 --- a/appengine/standard/ndb/entities/snippets.py +++ b/appengine/standard/ndb/entities/snippets.py @@ -118,7 +118,7 @@ def create_entity_with_generated_id(): # note: no id kwarg account = Account(username='Sandy', userid=1234, email='sandy@example.com') account.put() - # Account.key will now have a key of the form: ndb.Key(Account, 71321839) + # account.key will now have a key of the form: ndb.Key(Account, 71321839) # where the value 71321839 was generated by Datastore for us. return account