Parcourir la source

Improved ExpandableNameField help_text

Jeremy Stretch il y a 9 ans
Parent
commit
4cbf09e0e1
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      netbox/utilities/forms.py

+ 2 - 1
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.<br />'\
+                             'Example: <code>ge-0/0/[0-47]</code>'
 
     def to_python(self, value):
         if re.search(EXPANSION_PATTERN, value):