[Answer]-Django filter exclude with in and case senstive

1👍

You could use Q objects to constuct a query like this:

Event.objects.values_list('total',flat=True).exclude(reduce(lambda x, y: x | y, [Q(total__iexact=word) for word in self.summaries])))

This Will work for you

Leave a comment