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

Custom name for ConnectedDeviceViewSet

This commit is contained in:
Jeremy Stretch
2017-03-20 21:54:01 -04:00
parent 6cb36a6cee
commit 122526a9d0

View File

@@ -326,6 +326,9 @@ class ConnectedDeviceViewSet(ViewSet):
"""
permission_classes = [IsAuthenticated]
def get_view_name(self):
return "Connected Device Locator"
def list(self, request):
peer_device_name = request.query_params.get('peer-device')