I\'m trying to build a search system, and I want to search by multiple fieldsname, state, city, in my django models. I wrote the below code, yet I\'ve been unab
you can use django Q objects to do OR query,
or if you want to ANDyour queries together just use the current lookups as kwargs
seens = Finhall.objects.filter(
name__icontains=query_string,
address__icontains=query_string
)
You should really consider full text search or haystack (which makes search easy) because icontains issues a %LIKE% which is not remotely scalable