http://docs.djangoproject.com/en/dev/topics/db/queries/#topics-db-queries
to do case insensitive try Application.objects.filter(name__iexact=searchText) iexact A case-insensitive match. So, the query: >>> Blog.objects.get(name__iexact="beatles blog") Would match a Blog titled "Beatles Blog", "beatles blog", or even "BeAtlES blOG". There are other case-insentive options too On Tue, Mar 3, 2009 at 4: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.? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---