1
0

orders.py 369 B

12345678910
  1. from metaservicesynced.serializer import OrdersSerializer
  2. from rest_framework import viewsets, permissions
  3. from metaservicesynced.models import Orders
  4. class OrdersMVS(viewsets.ModelViewSet):
  5. queryset = Orders.objects.all()
  6. serializer_class = OrdersSerializer
  7. #permission_classes = [IsOwnerOrReadOnly]
  8. permission_classes = [permissions.IsAuthenticated]