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
Source:stackexchange.com