from rest_framework import viewsets

from coupons.models import Coupon
from coupons.serializers import CouponSerializer


class CouponViewSet(viewsets.ModelViewSet):
    """
    API endpoint that lets a user manipulate their folders.
    """

    serializer_class = CouponSerializer
    queryset = Coupon.objects.all()

@@ -1,12 +1,46 @@
+from rest_framework import status%0A
 from rest_fr
@@ -62,16 +62,61 @@
 viewsets
+%0Afrom rest_framework.response import Response
 %0A%0Afrom c
@@ -391,8 +391,126 @@
 s.all()%0A
+%0A    def partial_update(self, request, pk=None, **kwargs):%0A        return Response(status=status.HTTP_404_NOT_FOUND)%0A%0A

disable PATCH.