From d66d0640dcfbebbcc6d375e356878e93e53503fc Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 19 Apr 2020 15:13:09 +0300 Subject: [PATCH] Collection: disallow partial updates. --- django_etesync/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/django_etesync/views.py b/django_etesync/views.py index 7d6234f..b9cd878 100644 --- a/django_etesync/views.py +++ b/django_etesync/views.py @@ -95,6 +95,9 @@ class CollectionViewSet(BaseViewSet): # FIXME: implement return Response(status=status.HTTP_405_METHOD_NOT_ALLOWED) + def partial_update(self, request, uid=None): + return Response(status=status.HTTP_405_METHOD_NOT_ALLOWED) + def create(self, request, *args, **kwargs): serializer = self.serializer_class(data=request.data, context=self.get_serializer_context()) if serializer.is_valid():