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