Explorar el Código

Fix #7090: Cable Bulk Edit, length field should be decimal

Stefan de Kooter hace 4 años
padre
commit
1909f0c733
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      netbox/dcim/forms.py

+ 2 - 2
netbox/dcim/forms.py

@@ -4586,8 +4586,8 @@ class CableBulkEditForm(BootstrapMixin, AddRemoveTagsForm, CustomFieldModelBulkE
     color = ColorField(
         required=False
     )
-    length = forms.IntegerField(
-        min_value=1,
+    length = forms.DecimalField(
+        min_value=0,
         required=False
     )
     length_unit = forms.ChoiceField(