from django.shortcuts import get_object_or_404 from rest_framework import viewsets, permissions from rest_framework.response import Response from webservice_running.models import BrowseSportsman from webservice_running.serializers import BrowseSportsmanSerializer class BrowseSportsmanMVS(viewsets.ModelViewSet): queryset = BrowseSportsman.objects.all() serializer_class = BrowseSportsmanSerializer #permission_classes = [IsOwnerOrReadOnly] #permission_classes = [permissions.IsAuthenticated]