my code is

query = db.Query(Image)
             query = Image.all()
             query.filter("owner =",user)
             query.order('-date')
             images = query.fetch(limit=20)

but the server tells me that:
NeedIndexError: no matching index found.
This query needs this index:
- kind: Image
  properties:
  - name: owner
  - name: date
    direction: desc

when I use

query = db.Query(Image)
             query = Image.all()
             query.order('-date')
             images = query.fetch(limit=20)

or

query = db.Query(Image)
             query = Image.all()
             query.filter("owner =",user)
             images = query.fetch(limit=20)

it's ok..

anyone can help me ? thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to