diff --git a/netbox/utilities/forms/widgets.py b/netbox/utilities/forms/widgets.py index 6e227bb81..66f95f01b 100644 --- a/netbox/utilities/forms/widgets.py +++ b/netbox/utilities/forms/widgets.py @@ -18,7 +18,6 @@ __all__ = ( 'DateTimePicker', 'NumericArrayField', 'SelectSpeedWidget', - 'SelectWithDisabled', 'SelectWithPK', 'SlugWidget', 'SmallTextarea', @@ -76,18 +75,12 @@ class BulkEditNullBooleanSelect(forms.NullBooleanSelect): self.attrs['class'] = 'netbox-static-select' -class SelectWithDisabled(forms.Select): - """ - Modified the stock Select widget to accept choices using a dict() for a label. The dict for each option must include - 'label' (string) and 'disabled' (boolean). - """ - option_template_name = 'widgets/selectwithdisabled_option.html' - - -class StaticSelect(SelectWithDisabled): +class StaticSelect(forms.Select): """ A static