diff --git a/netbox/extras/forms/config.py b/netbox/extras/forms/config.py index fab6fdbd1..4a7dba614 100644 --- a/netbox/extras/forms/config.py +++ b/netbox/extras/forms/config.py @@ -48,12 +48,15 @@ class ConfigRevisionForm(forms.BaseModelForm, metaclass=FormMetaclass): value = getattr(config, param.name) is_static = hasattr(settings, param.name) if value: - help_text = f'
Current value: {value}' + help_text = self.fields[param.name].help_text + if help_text: + help_text += '
' # Line break + help_text += f'Current value: {value}' if is_static: help_text += ' (defined statically)' elif value == param.default: help_text += ' (default)' - self.fields[param.name].help_text += help_text + self.fields[param.name].help_text = help_text if is_static: self.fields[param.name].disabled = True