无法过滤非节点参数 - 数据存储 - 谷歌应用引擎 - Python

10
Class user(ndb.Model):
  def post(self):
    name = db.StringProperty()
    age = db.StringProperty()
Class search(webapp2.RequestHandler):
  def post(self):
    x = userData.query().filter("age >=",1)  #error points to this line

我收到一个错误信息:无法筛选非节点参数;接收到'age >='

我正在按照https://developers.google.com/appengine/docs/python/datastore/queries中提到的语法进行操作。

请告诉我如何解决这个问题。

1个回答

15

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接