1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#13299: Clean up custom field form field help text

This commit is contained in:
Jeremy Stretch
2023-12-01 10:24:12 -05:00
parent 7a63e11a70
commit 0340a5e8d6

View File

@ -519,8 +519,6 @@ class CustomField(CloningMixin, ExportTemplatesMixin, ChangeLoggedModel):
# Annotate read-only fields
if enforce_visibility and self.ui_editable != CustomFieldUIEditableChoices.YES:
field.disabled = True
prepend = '<br />' if field.help_text else ''
field.help_text += f'{prepend}<i class="mdi mdi-alert-circle-outline"></i> ' + _('Field is not editable.')
return field