Skip to content

Commit

Permalink
#13299: Clean up custom field form field help text
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Dec 1, 2023
1 parent 7a63e11 commit 0340a5e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions netbox/extras/models/customfields.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,6 @@ def to_form_field(self, set_initial=True, enforce_required=True, enforce_visibil
# 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

Expand Down

0 comments on commit 0340a5e

Please sign in to comment.