mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-20 19:19:22 -06:00
Leftover fix
This commit is contained in:
parent
286a3e6ca2
commit
892c0e3d8b
@ -2296,9 +2296,9 @@ class DeviceBulkAddComponentForm(BootstrapMixin, forms.Form):
|
|||||||
label_pattern_count = len(self.cleaned_data['label_pattern'])
|
label_pattern_count = len(self.cleaned_data['label_pattern'])
|
||||||
if label_pattern_count and name_pattern_count != label_pattern_count:
|
if label_pattern_count and name_pattern_count != label_pattern_count:
|
||||||
raise forms.ValidationError({
|
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(
|
'be generated. These counts must match.'.format(
|
||||||
name_pattern_count, self.type, label_pattern_count)
|
name_pattern_count, label_pattern_count)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user