Skip to content

Commit

Permalink
Change comment in ndb snippets to object property (#1150)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
howinator authored and Jon Wayne Parrott committed Oct 4, 2017
1 parent 24f1c94 commit 1f8b255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appengine/standard/ndb/entities/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def create_entity_with_generated_id():
# note: no id kwarg
account = Account(username='Sandy', userid=1234, email='[email protected]')
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

Expand Down

0 comments on commit 1f8b255

Please sign in to comment.