1
0

tasks.py 364 B

12345678910
  1. from dbsynce.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]