blob: 13f0707e0779348320b7557373c7c295ecf9c8a0 [file] [log] [blame]
Siobhan Tully30fd4292013-05-10 08:59:56 -04001from core.serializers import SliceMembershipSerializer
Siobhan Tully5d7dc8d2013-07-02 13:17:33 -04002from rest_framework import generics
3from core.models import SliceMembership
4
5class SliceMembershipList(generics.ListCreateAPIView):
6 queryset = SliceMembership.objects.all()
7 serializer_class = SliceMembershipSerializer
8
9class SliceMembershipDetail(generics.RetrieveUpdateDestroyAPIView):
10 queryset = SliceMembership.objects.all()
11 serializer_class = SliceMembershipSerializer
Tony Mack29c287f2013-04-11 21:07:16 -040012
13