HI Unfortunately that won't work.
>From the docs you can """In a query, comparing a list property to a value performs the test against the list members: list_property = value tests if the value appears anywhere in the list, list_property < value tests if any of the members of the list are less than the given value, and so forth. A query cannot compare two list values. There is no way to test two lists for equality without testing each element for membership separately.""" (ie no != or not in ) In addition because of the way indexing works, you won't have a index to objects that don't have a specific value. T On Apr 11, 12:40 am, molicule <molic...@gmail.com> wrote: > Hi, > > In the example below, I have a StringListProperty 'stems' and > when I try to do a != I do not get the desired result. Where it should > fetch no > results it fetches two. > > >>> for q in Mymodel.all().filter("stems !=", "purpl").fetch(10): print > >>> q.stems > > ... > [u'blue', u'black', u'green', u'grei', u'purpl'] > [u'blue', u'green', u'orang', u'violet', u'purpl'] > > > > What filter would I need to use to achieve the desired result ? > > Thanks > S. Sriram --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---