Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilsAutumn committed Nov 22, 2024
1 parent 4cd56dc commit 5848adc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions backend/djangoindia/api/views/partner_and_sponsor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from rest_framework import generics
from rest_framework.mixins import ListModelMixin
from rest_framework.response import Response

from djangoindia.api.serializers.partner_and_sponsor import (
CommunityPartnerAndSponsorSerializer,
Expand All @@ -26,11 +27,11 @@ def get_queryset(self):
)

return {
'community_partners': partners_queryset,
'community_sponsors': sponsors_queryset
"community_partners": partners_queryset,
"community_sponsors": sponsors_queryset,
}

def get(self, request):
queryset=self.get_queryset()
serializer=CommunityPartnerAndSponsorSerializer(queryset)
queryset = self.get_queryset()
serializer = CommunityPartnerAndSponsorSerializer(queryset)
return Response(serializer.data)

0 comments on commit 5848adc

Please sign in to comment.