Răsfoiți Sursa

Add widget for Airflow field in DeviceTypeForm

Artem I. Kotik 3 ani în urmă
părinte
comite
c97d2d4fe9
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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