Skip to content
Snippets Groups Projects
Commit 4c3abbad authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Add partial_update method to Note viewset

parent 77a15b0e
No related branches found
No related tags found
No related merge requests found
......@@ -740,6 +740,10 @@ class APINoteViewSet(
return Response(status=status.HTTP_400_BAD_REQUEST)
def partial_update(self, request, *args, **kwargs):
kwargs["partial"] = True
return self.update(request, *args, **kwargs)
def destroy(self, request, *args, **kwargs):
"""
Only admins can delete existing notes.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment