Explorar o código

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

Stefan de Kooter %!s(int64=4) %!d(string=hai) anos
pai
achega
1909f0c733
Modificáronse 1 ficheiros con 2 adicións e 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(