Skip to content

Commit

Permalink
fixup: use correct queryset.
Browse files Browse the repository at this point in the history
  • Loading branch information
elcct committed Jan 23, 2025
1 parent 7be5ef9 commit f49d90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datahub/export_win/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def list(self, request, *args, **kwargs):
response = super().list(request, *args, **kwargs)

# include totals for each Win status
counts = Win.objects.aggregate(
counts = self.get_queryset().aggregate(
null=Count(Case(When(customer_response__agree_with_win__isnull=True, then=Value(1)))),
true=Count(Case(When(customer_response__agree_with_win=True, then=Value(1)))),
false=Count(Case(When(customer_response__agree_with_win=False, then=Value(1)))),
Expand Down

0 comments on commit f49d90d

Please sign in to comment.