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 SportsmanGallery from webservice_running.serializers import SportsmanGallerySerializer class SportsmanGalleryMVS(viewsets.ModelViewSet): queryset = SportsmanGallery.objects.all() serializer_class = SportsmanGallerySerializer #permission_classes = [IsOwnerOrReadOnly] #permission_classes = [permissions.IsAuthenticated]