Siobhan Tully | 6136709 | 2013-07-07 17:20:18 -0400 | [diff] [blame] | 1 | from core.serializers import ServiceClassSerializer |
2 | from rest_framework import generics | ||||
3 | from core.models import ServiceClass | ||||
4 | |||||
5 | class ServiceClassList(generics.ListCreateAPIView): | ||||
6 | queryset = ServiceClass.objects.all() | ||||
7 | serializer_class = ServiceClassSerializer | ||||
8 | |||||
9 | class ServiceClassDetail(generics.RetrieveUpdateDestroyAPIView): | ||||
10 | queryset = ServiceClass.objects.all() | ||||
11 | serializer_class = ServiceClassSerializer | ||||
12 | |||||
13 |