Are you using sqlite for your db?  if so, there are some notes about case 
insensitive matching at

otherwise, I'd be interested in seeing what your SQL is like

in your django shell, do the following:

doctors = Doctors.objects.filter(name__icontains = 'joel')

It should have something like 

SELECT ... FROM ... WHERE name ILIKE  '%joel%';

which should do the case insensitive search.

Otherwise, this is a database issue, and not a django issue.  Django just 
converts the filter call to the appropriate SQL and has the db execute it.

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

Reply via email to