2009/3/3 Daniel Roseman <roseman.dan...@googlemail.com>

>
> On Mar 3, 9:50 am, burcu hamamcıoğlu <borco...@gmail.com> wrote:
> > I wrote a query like : applications =
> > Application.objects.filter(name__contains=searchText)
> > I want to get the applications filtered by searchText. If the app. name
> is
> > "Guitar" and my serachText is "guitar", django can't find it, makes the
> > query in case-sensitive format. How can i ignore this.?
>
> We try to be helpful here, but sometimes I have to ask why you
> couldn't have found the answer yourself. A simple search of the Django
> documentation - using the search box helpfully provided on every page
> - for the word 'insensitive' provided the correct syntax as the top
> result.
> --
> DR.
> >
>
You probably want icontains actually, since your original query was
contains.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to