mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Introduce SelectSpeedWidget
This commit is contained in:
@@ -16,6 +16,7 @@ __all__ = (
|
||||
'DatePicker',
|
||||
'DateTimePicker',
|
||||
'NumericArrayField',
|
||||
'SelectSpeedWidget',
|
||||
'SelectWithDisabled',
|
||||
'SelectWithPK',
|
||||
'SlugWidget',
|
||||
@@ -111,6 +112,13 @@ class ContentTypeSelect(StaticSelect2):
|
||||
option_template_name = 'widgets/select_contenttype.html'
|
||||
|
||||
|
||||
class SelectSpeedWidget(forms.NumberInput):
|
||||
"""
|
||||
Speed field with dropdown selections for convenience.
|
||||
"""
|
||||
template_name = 'widgets/select_speed.html'
|
||||
|
||||
|
||||
class NumericArrayField(SimpleArrayField):
|
||||
|
||||
def to_python(self, value):
|
||||
|
Reference in New Issue
Block a user