Namespaced all API URLs

This commit is contained in:
Jeremy Stretch
2017-01-31 10:40:53 -05:00
parent 173a6eee03
commit 1fcc2b0029
8 changed files with 46 additions and 11 deletions

View File

@@ -101,7 +101,7 @@ class ServiceViewSet(RetrieveModelMixin, UpdateModelMixin, DestroyModelMixin, Wr
class DeviceServiceViewSet(CreateModelMixin, ListModelMixin, WritableSerializerMixin, GenericViewSet):
serializer_class = serializers.ChildServiceSerializer
serializer_class = serializers.DeviceServiceSerializer
def get_queryset(self):
device = get_object_or_404(Device, pk=self.kwargs['pk'])