而不是一个单一的StringProperty(), 我想存储串确实NDB有一个列表属性
class BlogPost(ndb.Model):
s1 = ndb.StringProperty(required=True)
s2 = ndb.StringProperty(required=True)
s3 = ndb.StringProperty(required=True)
的名单,我宁愿去
class BlogPost(ndb.Model):
my_strings = ndb.StringListProperty() # does this exist?
注意它是由程序员来确保列表的长度是3(如果你只想要一个长度为3的列表) – 2012-08-10 08:48:49