On Fri, Sep 19, 2008 at 4:04 PM, Aaron <[EMAIL PROTECTED]> wrote:
> given the example code below:
> class Person(db.Model):
> first_name = db.StringProperty()
> last_name = db.StringProperty()
> city = db.StringProperty()
> birth_year = db.IntegerProperty()
> height = db.IntegerProperty()
>
> # The Query interface prepares a query using instance methods.
> q = Person.all()
> q.filter("last_name =", "Smith")
>
>
> How do you change the filter to return entities with last_name values
> of "SMITH" or "smith"
You can't directly. Your best bet is to store a generated property
(say, lower_last_name) as the lower-case version of the last_name
property, and then filter using a lowercased query string.
Dave.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---