tasks.py 375 B

12345678910
  1. from webservice_running.serializer import TasksSerializer
  2. from rest_framework import viewsets, permissions
  3. from webservice_running.models import Tasks
  4. class TasksMVS(viewsets.ModelViewSet):
  5. queryset = Tasks.objects.all()
  6. serializer_class = TasksSerializer
  7. #permission_classes = [IsOwnerOrReadOnly]
  8. permission_classes = [permissions.IsAuthenticated]