I have a model:
class Route(db.Model):
name = db.StringProperty()
code = db.StringProperty()
currently_running = db.IntegerProperty()
On my index page, I want to only display several of these routes, and
on another page, display all the routes. I can easily do the latter.
To display only certain routes, how can I make a query like this:
routes = db.GqlQuery("SELECT * FROM Route WHERE code = 'BL' OR code =
'WL'")
Apperently Gql doesn't like that OR.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---