blob: b8b1b70a6f1ed6af46f4a725c2c563de46c52855 [file] [log] [blame]
Siobhan Tully61367092013-07-07 17:20:18 -04001from core.serializers import ServiceClassSerializer
2from rest_framework import generics
3from core.models import ServiceClass
4
5class ServiceClassList(generics.ListCreateAPIView):
6 queryset = ServiceClass.objects.all()
7 serializer_class = ServiceClassSerializer
8
9class ServiceClassDetail(generics.RetrieveUpdateDestroyAPIView):
10 queryset = ServiceClass.objects.all()
11 serializer_class = ServiceClassSerializer
12
13