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 4 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
from netbox.plugins import PluginConfig, get_plugin_config from netbox.plugins import PluginConfig, get_plugin_config
__version__ = "0.26.1" __version__ = "0.26.2"
class NetBoxUtilitiesConfig(PluginConfig): class NetBoxUtilitiesConfig(PluginConfig):
+1
View File
@@ -432,6 +432,7 @@ def _install_device_form():
reordered["utilities_rack_width"] = self.fields["utilities_rack_width"] reordered["utilities_rack_width"] = self.fields["utilities_rack_width"]
reordered["utilities_horizontal_position"] = self.fields["utilities_horizontal_position"] reordered["utilities_horizontal_position"] = self.fields["utilities_horizontal_position"]
for name in STACK_FORM_FIELDS: for name in STACK_FORM_FIELDS:
if name in self.fields:
reordered[name] = self.fields[name] reordered[name] = self.fields[name]
self.fields = reordered self.fields = reordered
@@ -99,7 +99,7 @@
{% render_field form.vc_priority %} {% render_field form.vc_priority %}
</div> </div>
{% if form.utilities_switch_stack %} {% if "utilities_switch_stack" in form.fields %}
<div class="field-group my-5"> <div class="field-group my-5">
<div class="row"> <div class="row">
<h2 class="col-9 offset-3">Switch-Stack</h2> <h2 class="col-9 offset-3">Switch-Stack</h2>
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "netbox-utilities" 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" 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" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"