Compare commits

...
2 Commits
Author SHA1 Message Date
MrBlakeandClaude Opus 5.5 4dd01b82e3 fix: skip hidden stack fields when reordering device form fields
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:23:11 +01:00
MrBlakeandClaude Opus 5.5 2ea1dcaec3 fix: device edit form crashed when stack fields are hidden
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-05 16:22:58 +01:00
4 changed files with 5 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
from netbox.plugins import PluginConfig, get_plugin_config
__version__ = "0.26.1"
__version__ = "0.26.2"
class NetBoxUtilitiesConfig(PluginConfig):
+2 -1
View File
@@ -432,7 +432,8 @@ def _install_device_form():
reordered["utilities_rack_width"] = self.fields["utilities_rack_width"]
reordered["utilities_horizontal_position"] = self.fields["utilities_horizontal_position"]
for name in STACK_FORM_FIELDS:
reordered[name] = self.fields[name]
if name in self.fields:
reordered[name] = self.fields[name]
self.fields = reordered
def clean(self):
@@ -99,7 +99,7 @@
{% render_field form.vc_priority %}
</div>
{% if form.utilities_switch_stack %}
{% if "utilities_switch_stack" in form.fields %}
<div class="field-group my-5">
<div class="row">
<h2 class="col-9 offset-3">Switch-Stack</h2>
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "netbox-utilities"
version = "0.26.1"
version = "0.26.2"
description = "Navigation, tenant utilities, connection VLANs, partial-width racks, disks, CPU & RAM, switch port export and bulk operations for NetBox 4.6/4.7"
readme = "README.md"
requires-python = ">=3.12"