From 1909f0c7330d3f3c4e5c5a52735d8412d023beb5 Mon Sep 17 00:00:00 2001 From: Stefan de Kooter Date: Tue, 31 Aug 2021 21:17:50 +0200 Subject: [PATCH 1/3] Fix #7090: Cable Bulk Edit, length field should be decimal --- netbox/dcim/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index b69944cf6..7fcd2a6b2 100644 --- a/netbox/dcim/forms.py +++ b/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( From f1e4273a23564a4008051645ce48034619da443b Mon Sep 17 00:00:00 2001 From: Stefan de Kooter Date: Tue, 31 Aug 2021 21:24:07 +0200 Subject: [PATCH 2/3] Changelog for #7090 --- docs/release-notes/version-3.0.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/release-notes/version-3.0.md b/docs/release-notes/version-3.0.md index b4dff6676..22ba45cd0 100644 --- a/docs/release-notes/version-3.0.md +++ b/docs/release-notes/version-3.0.md @@ -12,10 +12,12 @@ * [#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 + --- ## v3.0.0 (2021-08-30) From 9c389d9dcb723b202a46b02944bc605bdba93183 Mon Sep 17 00:00:00 2001 From: Stefan de Kooter Date: Tue, 31 Aug 2021 22:01:15 +0200 Subject: [PATCH 3/3] Changelog #7090 fix whitespace --- docs/release-notes/version-3.0.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/release-notes/version-3.0.md b/docs/release-notes/version-3.0.md index 22ba45cd0..dd0c91173 100644 --- a/docs/release-notes/version-3.0.md +++ b/docs/release-notes/version-3.0.md @@ -17,7 +17,6 @@ * [#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 - --- ## v3.0.0 (2021-08-30)