blob: e3ab13989391260ba9390b53082e10b34597da96 [file] [log] [blame]
Siobhan Tully30fd4292013-05-10 08:59:56 -04001from core.serializers import SliceSerializer
Siobhan Tully5d7dc8d2013-07-02 13:17:33 -04002from rest_framework import generics
3from core.models import Slice
4
5class SliceList(generics.ListCreateAPIView):
6 queryset = Slice.objects.all()
7 serializer_class = SliceSerializer
8
9class SliceDetail(generics.RetrieveUpdateDestroyAPIView):
10 queryset = Slice.objects.all()
11 serializer_class = SliceSerializer
Tony Mack3a1af412013-04-09 22:36:27 -040012
13