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
commit a527767caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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