from metaservicesynced.serializer import FrequentaddressSerializer from rest_framework import viewsets, permissions from metaservicesynced.models import Frequentaddress class FrequentaddressMVS(viewsets.ModelViewSet): queryset = Frequentaddress.objects.all() serializer_class = FrequentaddressSerializer #permission_classes = [IsOwnerOrReadOnly] permission_classes = [permissions.IsAuthenticated]