fix: skip hidden stack fields when reordering device form fields

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-05 16:23:11 +01:00
1 parent 2ea1dcaec3
commit 4dd01b82e3
1 file changed
+2 -1
+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):