Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1f8b255

Browse filesBrowse files
howinatorJon Wayne Parrott
authored andcommitted
Change comment in ndb snippets to object property (GoogleCloudPlatform#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
Copy full SHA for 1f8b255

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎appengine/standard/ndb/entities/snippets.py

Copy file name to clipboardExpand all lines: appengine/standard/ndb/entities/snippets.py
+1-1Lines 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='sandy@example.com')
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.