From e1c951e816046b27dadd13f8ba3e43e414bde8b9 Mon Sep 17 00:00:00 2001 From: Martin Hauser Date: Thu, 19 Feb 2026 12:55:39 +0100 Subject: [PATCH] fix(dcim): Rename `facility` to `facility_id` in panel attrs Corrects field mismatch by aligning the attribute name with the data model. This change ensures consistency in attribute mappings and improves clarity in the codebase. Fixes #21481 --- netbox/dcim/ui/panels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/dcim/ui/panels.py b/netbox/dcim/ui/panels.py index 7a5fe3de1..67f7d0f32 100644 --- a/netbox/dcim/ui/panels.py +++ b/netbox/dcim/ui/panels.py @@ -44,7 +44,7 @@ class RackPanel(panels.ObjectAttributesPanel): site = attrs.RelatedObjectAttr('site', linkify=True, grouped_by='group') location = attrs.NestedObjectAttr('location', linkify=True) name = attrs.TextAttr('name') - facility = attrs.TextAttr('facility', label=_('Facility ID')) + facility_id = attrs.TextAttr('facility_id', label=_('Facility ID')) tenant = attrs.RelatedObjectAttr('tenant', linkify=True, grouped_by='group') status = attrs.ChoiceAttr('status') rack_type = attrs.RelatedObjectAttr('rack_type', linkify=True, grouped_by='manufacturer')