6
0

browse_sportsman.py 510 B

123456789101112
  1. from django.shortcuts import get_object_or_404
  2. from rest_framework import viewsets, permissions
  3. from rest_framework.response import Response
  4. from webservice_running.models import BrowseSportsman
  5. from webservice_running.serializers import BrowseSportsmanSerializer
  6. class BrowseSportsmanMVS(viewsets.ModelViewSet):
  7. queryset = BrowseSportsman.objects.all()
  8. serializer_class = BrowseSportsmanSerializer
  9. #permission_classes = [IsOwnerOrReadOnly]
  10. #permission_classes = [permissions.IsAuthenticated]