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