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