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