Jonathan Senecal %!s(int64=5) %!d(string=hai) anos
pai
achega
892c0e3d8b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      netbox/dcim/forms.py

+ 2 - 2
netbox/dcim/forms.py

@@ -2296,9 +2296,9 @@ class DeviceBulkAddComponentForm(BootstrapMixin, forms.Form):
         label_pattern_count = len(self.cleaned_data['label_pattern'])
         if label_pattern_count and name_pattern_count != label_pattern_count:
             raise forms.ValidationError({
-                'label_pattern': 'The provided name pattern will create {} {}}, however {} labels will '
+                'label_pattern': 'The provided name pattern will create {} ports, however {} labels will '
                 'be generated. These counts must match.'.format(
-                    name_pattern_count, self.type, label_pattern_count)
+                    name_pattern_count, label_pattern_count)
             })