Explorar el Código

Clarify error message

Jeremy Stretch hace 11 meses
padre
commit
a4ecb82330
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      netbox/circuits/models/circuits.py

+ 1 - 2
netbox/circuits/models/circuits.py

@@ -349,9 +349,8 @@ class CircuitTermination(
     def clean(self):
     def clean(self):
         super().clean()
         super().clean()
 
 
-        # Must define either site *or* provider network
         if self.termination is None:
         if self.termination is None:
-            raise ValidationError(_("A circuit termination must attach to termination."))
+            raise ValidationError(_("A circuit termination must attach to a terminating object."))
 
 
     def save(self, *args, **kwargs):
     def save(self, *args, **kwargs):
         # Cache objects associated with the terminating object (for filtering)
         # Cache objects associated with the terminating object (for filtering)