12345678910 |
- from metaservicesynced.serializer import CompanySerializer
- from rest_framework import viewsets, permissions
- from metaservicesynced.models import Company
- class CompanyMVS(viewsets.ModelViewSet):
- queryset = Company.objects.all()
- serializer_class = CompanySerializer
- #permission_classes = [IsOwnerOrReadOnly]
- permission_classes = [permissions.IsAuthenticated]
|