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