from functools import reduce
condition = reduce(operator.and_, [Q(full_name__icontains=s) for s in strings])
queryset = Profile.objects.filter(condition)
Filter Django database for field containing any value in an array