Skip to content

Commit 1f8b255

Browse files
howinatorJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Change comment in ndb snippets to object property (#1150)
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.
1 parent 24f1c94 commit 1f8b255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appengine/standard/ndb/entities/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def create_entity_with_generated_id():
118118
# note: no id kwarg
119119
account = Account(username='Sandy', userid=1234, email='[email protected]')
120120
account.put()
121-
# Account.key will now have a key of the form: ndb.Key(Account, 71321839)
121+
# account.key will now have a key of the form: ndb.Key(Account, 71321839)
122122
# where the value 71321839 was generated by Datastore for us.
123123
return account
124124

0 commit comments

Comments
 (0)