From 12eea1e097260ff979e64a4d6cfdfa633f90e11c Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 6 Feb 2020 11:44:29 -0500 Subject: [PATCH] Simplify help_text for ExpandableNameField --- netbox/utilities/forms.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/netbox/utilities/forms.py b/netbox/utilities/forms.py index 35c051ecf..355484673 100644 --- a/netbox/utilities/forms.py +++ b/netbox/utilities/forms.py @@ -451,12 +451,14 @@ class ExpandableNameField(forms.CharField): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) if not self.help_text: - self.help_text = 'Alphanumeric ranges are supported for bulk creation.
' \ - 'Mixed cases and types within a single range are not supported.
' \ - 'Examples:' + self.help_text = """ + Alphanumeric ranges are supported for bulk creation. Mixed cases and types within a single range + are not supported. Examples: + + """ def to_python(self, value): if re.search(ALPHANUMERIC_EXPANSION_PATTERN, value):