Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/devdev'
Browse files Browse the repository at this point in the history
  • Loading branch information
MU-Software committed Sep 24, 2024
2 parents 8ce549d + 28a5491 commit 6447d76
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions sponsor/viewsets.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
from typing import Type

from django.db.transaction import atomic

from django.db.models import Prefetch
from django.shortcuts import get_object_or_404
from django.db.transaction import atomic
from django.db.utils import IntegrityError
from django.shortcuts import get_object_or_404
from rest_framework import mixins, status, viewsets
from rest_framework.response import Response
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet, ViewSet

from sponsor.models import Patron, Sponsor, SponsorLevel, SponsorBenefit, BenefitByLevel
from sponsor.models import BenefitByLevel, Patron, Sponsor, SponsorBenefit, SponsorLevel
from sponsor.permissions import IsOwnerOrReadOnly, OwnerOnly
from sponsor.serializers import (
BenefitByLevelSerializer,
PatronListSerializer,
SponsorBenefitSerializer,
SponsorDetailSerializer,
SponsorLevelSerializer,
SponsorListSerializer,
SponsorRemainingAccountSerializer,
SponsorSerializer,
SponsorLevelSerializer,
SponsorBenefitSerializer,
BenefitByLevelSerializer,
SponsorWithLevelSerializer,
)
from sponsor.slack import send_new_sponsor_notification
Expand Down Expand Up @@ -175,7 +174,7 @@ def list(self, request, *args, **kwargs):


class PatronListViewSet(ViewSet):
def list(self, request):
def list(self, request, *args, **kwargs):
queryset = Patron.objects.all()
serializer = PatronListSerializer(queryset, many=True)
return Response(serializer.data)

0 comments on commit 6447d76

Please sign in to comment.