Skip to content

Commit

Permalink
feat: 후원금이 입금된 후원사만 표시 되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jungmir committed Sep 21, 2024
1 parent b6c38e2 commit 2c776cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sponsor/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def get_serializer_class(self):

@action(detail=False, methods=["GET"], url_path="with-sponsor")
def list_with_levels(self, request, version):
serializer = self.get_serializer(self.get_queryset(), many=True)
serializer = self.get_serializer(
self.get_queryset().filter(sponsor__paid_at__isnull=False), many=True
)
return Response(serializer.data)

@action(detail=False, methods=["POST"])
Expand Down

0 comments on commit 2c776cb

Please sign in to comment.