blob: 4ec9cb2a614260d851761f810d650c28860696ec [file] [log] [blame]
Siobhan Tully30fd4292013-05-10 08:59:56 -04001from core.serializers import SiteSerializer
Siobhan Tully5d7dc8d2013-07-02 13:17:33 -04002from rest_framework import generics
3from core.models import Site
4
5class SiteList(generics.ListCreateAPIView):
6 queryset = Site.objects.all()
7 serializer_class = SiteSerializer
8
9class SiteDetail(generics.RetrieveUpdateDestroyAPIView):
10 queryset = Site.objects.all()
11 serializer_class = SiteSerializer