From ba31b2f8d4116eb6ec0aa3d13c16c1a00177a432 Mon Sep 17 00:00:00 2001 From: Pavel Nakonechnyi Date: Wed, 2 Oct 2024 19:52:08 +0200 Subject: [PATCH] REST API: make test notes API support DELETE operation --- dojo/api_v2/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dojo/api_v2/views.py b/dojo/api_v2/views.py index c956dac283..2b711b5f41 100644 --- a/dojo/api_v2/views.py +++ b/dojo/api_v2/views.py @@ -2825,8 +2825,9 @@ def get_queryset(self): # Authorization: superuser class NotesViewSet( - mixins.UpdateModelMixin, - viewsets.ReadOnlyModelViewSet, + # mixins.UpdateModelMixin, + # viewsets.ReadOnlyModelViewSet, + PrefetchDojoModelViewSet, ): serializer_class = serializers.NoteSerializer queryset = Notes.objects.none()