from webservice_running.serializer import TasksSerializer from rest_framework import viewsets, permissions from webservice_running.models import Tasks class TasksMVS(viewsets.ModelViewSet): queryset = Tasks.objects.all() serializer_class = TasksSerializer #permission_classes = [IsOwnerOrReadOnly] permission_classes = [permissions.IsAuthenticated]