NotSupportedError : Вызов QuerySet.exclude() после union() не поддерживается
Я получаю приведенную выше ошибку, когда пытаюсь исключить некоторые наборы данных из результата...
votes = VoteResponse.objects.filter(project=self)
others = OtherResponse.objects.filter(project=self)
vote_responses = votes.filter(date__year=self.date.year, date__quarter=self.date_quarter)
return vote_responses.union(others)
и я пытаюсь исключить комментарии с null...
projectSnapshot.comments = projectSnapshotResponses.exclude(comments='').order_by('-date')[:10].values_list('comments', flat=True)
Может ли кто-нибудь помочь мне с этим...
Спасибо