瀏覽代碼

Add widget for Airflow field in DeviceTypeForm

Artem I. Kotik 3 年之前
父節點
當前提交
c97d2d4fe9
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      netbox/dcim/forms/models.py

+ 1 - 0
netbox/dcim/forms/models.py

@@ -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