ccdb-api/ccdb/locations/viewsets.py

9 lines
263 B
Python

from rest_framework import viewsets
from .models import StudyLocation
from .serializers import StudyLocationSerializer
class StudyLocationViewSet(viewsets.ModelViewSet):
queryset = StudyLocation.objects.all()
serializer_class = StudyLocationSerializer