From 4cbf09e0e1558e8fe74dbee238aa3ffe2ae80eb4 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 24 Jun 2016 11:45:47 -0400 Subject: [PATCH] Improved ExpandableNameField help_text --- netbox/utilities/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox/utilities/forms.py b/netbox/utilities/forms.py index f392ae931..7ad41697e 100644 --- a/netbox/utilities/forms.py +++ b/netbox/utilities/forms.py @@ -158,7 +158,8 @@ class ExpandableNameField(forms.CharField): def __init__(self, *args, **kwargs): super(ExpandableNameField, self).__init__(*args, **kwargs) if not self.help_text: - self.help_text = 'Numeric ranges are supported for bulk creation.' + self.help_text = 'Numeric ranges are supported for bulk creation.
'\ + 'Example: ge-0/0/[0-47]' def to_python(self, value): if re.search(EXPANSION_PATTERN, value):