Преглед на файлове

11416 fix circuit termination deletion

Arthur преди 3 години
родител
ревизия
8d9e151030
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)
             # Step 5: Record the far-end termination object(s)
             path.append([
             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
             # Step 6: Determine the "next hop" terminations, if applicable