Explorar o código

11416 fix circuit termination deletion

Arthur %!s(int64=3) %!d(string=hai) anos
pai
achega
8d9e151030
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/dcim/models/cables.py

+ 1 - 1
netbox/dcim/models/cables.py

@@ -537,7 +537,7 @@ class CablePath(models.Model):
 
             # Step 5: Record the far-end termination object(s)
             path.append([
-                object_to_path_node(t) for t in remote_terminations
+                object_to_path_node(t) for t in remote_terminations if t is not None
             ])
 
             # Step 6: Determine the "next hop" terminations, if applicable