Explorar o código

Fixes #3669: Include weight field in prefix/VLAN role form

Jeremy Stretch %!s(int64=6) %!d(string=hai) anos
pai
achega
fbde6187ea
Modificáronse 3 ficheiros con 3 adicións e 2 borrados
  1. 1 0
      docs/release-notes/version-2.6.md
  2. 1 1
      netbox/ipam/forms.py
  3. 1 1
      netbox/ipam/tables.py

+ 1 - 0
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)

+ 1 - 1
netbox/ipam/forms.py

@@ -240,7 +240,7 @@ class RoleForm(BootstrapMixin, forms.ModelForm):
     class Meta:
         model = Role
         fields = [
-            'name', 'slug',
+            'name', 'slug', 'weight',
         ]
 
 

+ 1 - 1
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')
 
 
 #