From d6bde32056f94e8c97b2a50caece6a507b737146 Mon Sep 17 00:00:00 2001 From: Brian Tiemann Date: Fri, 8 Nov 2024 10:26:13 -0500 Subject: [PATCH] Simplify help text replacement string for component forms with 'module' field --- netbox/dcim/forms/object_create.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/netbox/dcim/forms/object_create.py b/netbox/dcim/forms/object_create.py index 412fcececb..fd8b88a8ab 100644 --- a/netbox/dcim/forms/object_create.py +++ b/netbox/dcim/forms/object_create.py @@ -57,13 +57,11 @@ def __init__(self, *args, **kwargs): # Components attached to a module need to present this standardized substitution help text. if 'module' in self.fields: - help_text_parts = [] - if self.fields['name'].help_text: - help_text_parts.append(self.fields['name'].help_text) - help_text_parts.append(_( - "The string {module} will be replaced with the position of the assigned module, if any." - )) - self.fields['name'].help_text = ' '.join([str(x) for x in help_text_parts]) + self.fields['name'].help_text = _( + "Alphanumeric ranges are supported for bulk creation. Mixed cases and types within a single range are " + "not supported (example: [ge,xe]-0/0/[0-9]). The string {module} will be " + "replaced with the position of the assigned module, if any." + ) def clean(self): super().clean()