1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Converted device component views to a router

This commit is contained in:
Jeremy Stretch
2017-01-30 16:15:12 -05:00
parent f0fef94a4f
commit 7beac0b105
3 changed files with 37 additions and 36 deletions

View File

@@ -100,7 +100,7 @@ class ServiceViewSet(RetrieveModelMixin, UpdateModelMixin, DestroyModelMixin, Wr
serializer_class = serializers.ServiceSerializer
class ChildServiceViewSet(CreateModelMixin, ListModelMixin, WritableSerializerMixin, GenericViewSet):
class DeviceServiceViewSet(CreateModelMixin, ListModelMixin, WritableSerializerMixin, GenericViewSet):
serializer_class = serializers.ChildServiceSerializer
def get_queryset(self):