From 2c440062cec1b20c3823651b59e0a9a9ab53b0d7 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 11 Mar 2020 11:33:14 +0100 Subject: [PATCH] Changelogs are read-only protected --- apps/logs/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/logs/api/views.py b/apps/logs/api/views.py index 5b1b3ff6..1ddfd7bc 100644 --- a/apps/logs/api/views.py +++ b/apps/logs/api/views.py @@ -8,7 +8,7 @@ from .serializers import ChangelogSerializer from ..models import Changelog -class ChangelogViewSet(viewsets.ModelViewSet): +class ChangelogViewSet(viewsets.ReadOnlyModelViewSet): """ REST API View set. The djangorestframework plugin will get all `Changelog` objects, serialize it to JSON with the given serializer,