소스 검색

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