From 60737a8d6b669b9d2c855c5f511c813e7940fedd Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 6 Nov 2019 09:39:21 -0500 Subject: [PATCH] Fixes #3669: Include weight field in prefix/VLAN role form --- docs/release-notes/version-2.6.md | 1 + netbox/ipam/forms.py | 2 +- netbox/ipam/tables.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/release-notes/version-2.6.md b/docs/release-notes/version-2.6.md index 7250cc6f2..92ced060c 100644 --- a/docs/release-notes/version-2.6.md +++ b/docs/release-notes/version-2.6.md @@ -2,6 +2,7 @@ ## Bug Fixes +* [#3669](https://github.com/netbox-community/netbox/issues/3669) - Include `weight` field in prefix/VLAN role form * [#3674](https://github.com/netbox-community/netbox/issues/3674) - Include comments on PowerFeed view # v2.6.7 (2019-11-01) diff --git a/netbox/ipam/forms.py b/netbox/ipam/forms.py index 002d2a72a..bedbe3463 100644 --- a/netbox/ipam/forms.py +++ b/netbox/ipam/forms.py @@ -240,7 +240,7 @@ class RoleForm(BootstrapMixin, forms.ModelForm): class Meta: model = Role fields = [ - 'name', 'slug', + 'name', 'slug', 'weight', ] diff --git a/netbox/ipam/tables.py b/netbox/ipam/tables.py index 3906f080f..0dde11870 100644 --- a/netbox/ipam/tables.py +++ b/netbox/ipam/tables.py @@ -292,7 +292,7 @@ class RoleTable(BaseTable): class Meta(BaseTable.Meta): model = Role - fields = ('pk', 'name', 'prefix_count', 'vlan_count', 'slug', 'actions') + fields = ('pk', 'name', 'prefix_count', 'vlan_count', 'slug', 'weight', 'actions') #