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