Merge branch 'develop' into feature

This commit is contained in:
Jeremy Stretch
2025-01-06 13:42:57 -05:00
16 changed files with 208 additions and 147 deletions

View File

@@ -605,6 +605,10 @@ class CablePath(models.Model):
cable_end = 'A' if lct.cable_end == 'B' else 'B'
q_filter |= Q(cable=lct.cable, cable_end=cable_end)
# Make sure this filter has been populated; if not, we have probably been given invalid data
if not q_filter:
break
remote_cable_terminations = CableTermination.objects.filter(q_filter)
remote_terminations = [ct.termination for ct in remote_cable_terminations]
else: