Well funnily enough, not that ... :-)

It's just a usability thing that if you search for "anal".. you will not have in mind any of these...

A Towpath Walks in Oxford: The Canal and River Thames Between Wolvercote and the City
El Ventanal / The Wide Window (Series Of Unfortunate Events (Spanish))    
The Complete Psychological Works of Sigmund Freud: "New Introductory Lectures on Psycho-analysis" and Other Works Vol 22

..probably...


On 4 Oct 2006, at 17:01, John DeRosa wrote:

heh.  so do we get to guess what your django-based site is about?


Tom Smith wrote:

If I am looking for titles like "Anal Sex" or "Being Anal" then how  

do I construct this, ahem, query... to not return "Analysis" or  

"Analog"?


I tried adding spaces to the end of the word but it doesn't seem to  

help...


object_list = Product.objects.filter( Q(title__contains=word + " ")| Q 

(title__contains=" " + word )  )


regards


tom



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to