Re: how to use strings in queries?? or do lookups with dynamic number of Q objects?

2009-02-23 Thread Oxford
Hi Pete Have you tried chaining the filters? q = Entry.objects.filter(headline__startswith="What") for x in range(x): q = q.filter(pub_date__lte=x) http://docs.djangoproject.com/en/dev/topics/db/queries/#id3 I've used this chaining method with filters. I would expect Q objects would be fi

how to use strings in queries?? or do lookups with dynamic number of Q objects?

2009-02-23 Thread PeteDK
Hi there. I am trying to make a search function. lookupInt1 = 1 print "inden loekke" for i in fromCityList: print "test"+ i.by