Skip to content

Commit 5f8a639

Browse files
committed
update: baseViewSet 변경
1 parent 60d1038 commit 5f8a639

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sponsor/viewsets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django.shortcuts import get_object_or_404
22

3-
from rest_framework.viewsets import ReadOnlyModelViewSet
3+
from rest_framework.viewsets import ModelViewSet
44
from rest_framework.permissions import IsAuthenticatedOrReadOnly
55
from rest_framework.response import Response
66

@@ -11,7 +11,7 @@
1111
from sponsor.models import Sponsor
1212

1313

14-
class SponsorViewSet(ReadOnlyModelViewSet):
14+
class SponsorViewSet(ModelViewSet):
1515
serializer_class = SponsorSerializer
1616
permission_classes = [IsAuthenticatedOrReadOnly] # 로그인된 사용자에게만 허용
1717

0 commit comments

Comments
 (0)