Explorar el Código

Custom name for ConnectedDeviceViewSet

Jeremy Stretch hace 9 años
padre
commit
122526a9d0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      netbox/dcim/api/views.py

+ 3 - 0
netbox/dcim/api/views.py

@@ -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')