Collection: disallow partial updates.
This commit is contained in:
parent
af27871955
commit
d66d0640dc
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user