mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Improved ExpandableNameField help_text
This commit is contained in:
@ -158,7 +158,8 @@ class ExpandableNameField(forms.CharField):
|
|||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(ExpandableNameField, self).__init__(*args, **kwargs)
|
super(ExpandableNameField, self).__init__(*args, **kwargs)
|
||||||
if not self.help_text:
|
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):
|
def to_python(self, value):
|
||||||
if re.search(EXPANSION_PATTERN, value):
|
if re.search(EXPANSION_PATTERN, value):
|
||||||
|
Reference in New Issue
Block a user