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:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user