Skip to content

Commit

Permalink
Remove all dataset modification endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Nov 7, 2024
1 parent e92366d commit d7a31ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uvdat/core/rest/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from rest_framework import serializers
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.viewsets import ModelViewSet
from rest_framework.viewsets import ReadOnlyModelViewSet

from uvdat.core.models import Dataset, Network, NetworkEdge, NetworkNode
from uvdat.core.rest.access_control import GuardianFilter, GuardianPermission
Expand All @@ -21,7 +21,7 @@ class GCCQueryParamSerializer(serializers.Serializer):
exclude_nodes = serializers.RegexField(r'^\d+(,\s?\d+)*$')


class DatasetViewSet(ModelViewSet):
class DatasetViewSet(ReadOnlyModelViewSet):
queryset = Dataset.objects.all()
serializer_class = DatasetSerializer
permission_classes = [GuardianPermission]
Expand Down

0 comments on commit d7a31ae

Please sign in to comment.