Changelogs are read-only protected

This commit is contained in:
Yohann D'ANELLO 2020-03-11 11:33:14 +01:00
parent 1379759803
commit 2c440062ce
1 changed files with 1 additions and 1 deletions

View File

@ -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,