From 2c776cbf70ddca0ca31c325de6a0fef84ebd93f9 Mon Sep 17 00:00:00 2001 From: jungmir Date: Sat, 21 Sep 2024 19:35:17 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=9B=84=EC=9B=90=EA=B8=88=EC=9D=B4=20?= =?UTF-8?q?=EC=9E=85=EA=B8=88=EB=90=9C=20=ED=9B=84=EC=9B=90=EC=82=AC?= =?UTF-8?q?=EB=A7=8C=20=ED=91=9C=EC=8B=9C=20=EB=90=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sponsor/viewsets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sponsor/viewsets.py b/sponsor/viewsets.py index 2e56066..b272b4b 100644 --- a/sponsor/viewsets.py +++ b/sponsor/viewsets.py @@ -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"])