blob: 13c991756fa5be1c02902d202b699bebf2c33c3c [file] [log] [blame]
Siobhan Tully30fd4292013-05-10 08:59:56 -04001from core.serializers import RoleSerializer
Siobhan Tully5d7dc8d2013-07-02 13:17:33 -04002from rest_framework import generics
3from core.models import Role
4
5class RoleList(generics.ListCreateAPIView):
6 queryset = Role.objects.all()
7 serializer_class = RoleSerializer
8
9class RoleDetail(generics.RetrieveUpdateDestroyAPIView):
10 queryset = Role.objects.all()
11 serializer_class = RoleSerializer
Tony Mack78174092013-04-07 20:17:38 -040012
13