You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
334 B

from rest_framework import viewsets
from .models import DiveBase
from .serializers import DiveBaseSerializer
from rest_framework.permissions import IsAuthenticated
class DiveBaseViewSet(viewsets.ModelViewSet):
serializer_class = DiveBaseSerializer
permission_classes = [IsAuthenticated]
queryset = DiveBase.objects.all()