I have some Ice-entities in my datastore. When I run the following on the admin-webInterface
from google.appengine.ext import db
class Ice(db.Model):
name = db.StringProperty()
description = db.StringProperty(multiline=True)
date = db.DateTimeProperty(auto_now_add=True)
for ice in Ice.all():
print ice.key().id()
print Ice.get_by_id(ice.key().id())
我总是得到:
4
None
5
None
6
None
7
None
8
None
9
None
10
None
11
None
12
None
13
None
14
None
15
None
16
None
17
None
18
None
19
None
20
None
为什么?