Merge pull request #10455 from miaow2/10439-airlow-widget

10439 Add widget for Airflow field in DeviceTypeForm
This commit is contained in:
Jeremy Stretch
2022-09-26 09:20:48 -04:00
committed by GitHub

View File

@@ -373,6 +373,7 @@ class DeviceTypeForm(NetBoxModelForm):
'front_image', 'rear_image', 'comments', 'tags',
]
widgets = {
'airflow': StaticSelect(),
'subdevice_role': StaticSelect(),
'front_image': ClearableFileInput(attrs={
'accept': DEVICETYPE_IMAGE_FORMATS