Explorar o código

Fixes #14620: Permit setting device type U height to 0 during bulk edit

Jeremy Stretch %!s(int64=2) %!d(string=hai) anos
pai
achega
fedcbaf4c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/dcim/forms/bulk_edit.py

+ 1 - 1
netbox/dcim/forms/bulk_edit.py

@@ -412,7 +412,7 @@ class DeviceTypeBulkEditForm(NetBoxModelBulkEditForm):
     )
     u_height = forms.IntegerField(
         label=_('U height'),
-        min_value=1,
+        min_value=0,
         required=False
     )
     is_full_depth = forms.NullBooleanField(