I have a list of names that I want to match case insensitive, is there a way to do it without using a loop like below?
a = [\'name1\', \'name2\', \'name3\']
I am expanding Exgeny idea into an two liner.
import functools Name.objects.filter(functools.reduce(lambda acc,x: acc | Q(name_iexact=x)), names, Q()))