Skip to content

Commit

Permalink
add grants_queryset.distinct() (#6830)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiantf authored Jun 23, 2020
1 parent 66e2450 commit 14fcbf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/grants/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def report(self, request):
else:
to_timestamp = datetime.now()
grants_queryset = grants_queryset.filter(subscriptions__subscription_contribution__created_on__lte=to_timestamp)
grants_queryset = grants_queryset.distinct()

grantee_data = grantee_serializer(grants_queryset, many=True).data
donor_data = donor_serializer(contributions_queryset, many=True).data
Expand Down

0 comments on commit 14fcbf5

Please sign in to comment.