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