CollectionItem: implement both update and create.

This commit is contained in:
Tom Hacohen
2020-05-19 13:00:54 +03:00
parent 23dcbc1f9e
commit 4c7e30eca5
2 changed files with 19 additions and 22 deletions

View File

@@ -187,8 +187,10 @@ class CollectionItemViewSet(BaseViewSet):
# We can't have destroy because we need to get data from the user (in the body) such as hmac.
return Response(status=status.HTTP_405_METHOD_NOT_ALLOWED)
def update(self, request, collection_uid=None, uid=None):
return Response(status=status.HTTP_405_METHOD_NOT_ALLOWED)
def partial_update(self, request, collection_uid=None, uid=None):
# FIXME: implement, or should it be implemented elsewhere?
return Response(status=status.HTTP_405_METHOD_NOT_ALLOWED)
def list(self, request, collection_uid=None):