12345678910 |
- from dbsynce.serializer import ProviderSerializer
- from rest_framework import viewsets, permissions
- from dbsynce.models import Provider
- class ProviderMVS(viewsets.ModelViewSet):
- queryset = Provider.objects.all()
- serializer_class = ProviderSerializer
- #permission_classes = [IsOwnerOrReadOnly]
- permission_classes = [permissions.IsAuthenticated]
|