From a3a8fd601ce5a2426db6d5408da63534235b2112 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Fri, 27 Mar 2020 13:26:47 +0100 Subject: [PATCH] revert to ReadProtectedViewset --- apps/note/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/note/api/views.py b/apps/note/api/views.py index 40fc4f4e..e70eb49e 100644 --- a/apps/note/api/views.py +++ b/apps/note/api/views.py @@ -45,7 +45,7 @@ class NotePolymorphicViewSet(ReadOnlyProtectedModelViewSet): return queryset.distinct() -class AliasViewSet(viewsets.ModelViewSet): +class AliasViewSet(ReadProtectedModelViewSet): """ REST API View set. The djangorestframework plugin will get all `Alias` objects, serialize it to JSON with the given serializer,