Procházet zdrojové kódy

Fixes #18959: Preserve ordering of terminations in cable traces

Jeremy Stretch před 10 měsíci
rodič
revize
459c4bfd9d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      netbox/dcim/svg/cables.py

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

@@ -226,7 +226,7 @@ class CableTraceSVG:
         nodes_height = 0
         nodes = []
         # Sort them by name to make renders more readable
-        for i, term in enumerate(sorted(terminations, key=lambda x: str(x))):
+        for i, term in enumerate(terminations):
             node = Node(
                 position=(offset_x + i * width, self.cursor),
                 width=width,