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

Replace temporary comment with proper one

Sander Steffann преди 6 години
родител
ревизия
cafecb091d
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      netbox/dcim/models/__init__.py

+ 2 - 1
netbox/dcim/models/__init__.py

@@ -2191,7 +2191,8 @@ class Cable(ChangeLoggedModel):
                 f"Incompatible termination types: {self.termination_a_type} and {self.termination_b_type}"
             )
 
-        # Check that a RearPort isn't connected to something silly
+        # Check that a RearPort with multiple positions isn't connected to an endpoint
+        # or a RearPort with a different number of positions.
         for term_a, term_b in [
             (self.termination_a, self.termination_b),
             (self.termination_b, self.termination_a)