blob: 4dd1f93168ddff14c49a0b4ba325bff4514fc723 [file] [log] [blame]
Siobhan Tullybfd11dc2013-09-03 12:59:24 -04001from core.serializers import SlicePrivilegeSerializer
2from rest_framework import generics
3from core.models import SlicePrivilege
4
5class SlicePrivilegeList(generics.ListCreateAPIView):
6 queryset = SlicePrivilege.objects.all()
7 serializer_class = SlicePrivilegeSerializer
8
9class SlicePrivilegeDetail(generics.RetrieveUpdateDestroyAPIView):
10 queryset = SlicePrivilege.objects.all()
11 serializer_class = SlicePrivilegeSerializer
12
13