From 8778857a339081b19b3cfe7431152b49df6a9792 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 09e7cb734b..49ba70fac0 100644 --- a/dojo/api_v2/views.py +++ b/dojo/api_v2/views.py @@ -2598,8 +2598,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()