Siobhan Tully | bfd11dc | 2013-09-03 12:59:24 -0400 | [diff] [blame] | 1 | from core.serializers import SlicePrivilegeSerializer |
2 | from rest_framework import generics | ||||
3 | from core.models import SlicePrivilege | ||||
4 | |||||
5 | class SlicePrivilegeList(generics.ListCreateAPIView): | ||||
6 | queryset = SlicePrivilege.objects.all() | ||||
7 | serializer_class = SlicePrivilegeSerializer | ||||
8 | |||||
9 | class SlicePrivilegeDetail(generics.RetrieveUpdateDestroyAPIView): | ||||
10 | queryset = SlicePrivilege.objects.all() | ||||
11 | serializer_class = SlicePrivilegeSerializer | ||||
12 | |||||
13 |