Просмотр исходного кода

Merge pull request #7105 from sdktr/7090-fix-cablebulkedit-length-field

Fix #7090: cable bulk edit form - allow decimal input on length field
Jeremy Stretch 4 лет назад
Родитель
Сommit
515b6bf71a
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 0
      docs/release-notes/version-3.0.md
  2. 2 2
      netbox/dcim/forms.py

+ 1 - 0
docs/release-notes/version-3.0.md

@@ -12,6 +12,7 @@
 * [#7083](https://github.com/netbox-community/netbox/issues/7083) - Correct labeling for VM memory attribute
 * [#7084](https://github.com/netbox-community/netbox/issues/7084) - Fix KeyError exception when editing access VLAN on an interface
 * [#7089](https://github.com/netbox-community/netbox/issues/7089) - Fix ContentTypeFilterSet not filtering on q filter
+* [#7090](https://github.com/netbox-community/netbox/issues/7090) - Fix Cable Bulk Edit Form - allow decimal input on Length field
 * [#7093](https://github.com/netbox-community/netbox/issues/7093) - Multi-select custom field filters should employ exact match
 * [#7096](https://github.com/netbox-community/netbox/issues/7096) - Home links should honor `BASE_PATH` configuration
 * [#7101](https://github.com/netbox-community/netbox/issues/7101) - Enforce `MAX_PAGE_SIZE` for table and REST API pagination

+ 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(