mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-21 20:18:38 -06:00
fix(dcim): Rename facility to facility_id in panel attrs (#21482)
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
This commit is contained in:
@@ -44,7 +44,7 @@ class RackPanel(panels.ObjectAttributesPanel):
|
|||||||
site = attrs.RelatedObjectAttr('site', linkify=True, grouped_by='group')
|
site = attrs.RelatedObjectAttr('site', linkify=True, grouped_by='group')
|
||||||
location = attrs.NestedObjectAttr('location', linkify=True)
|
location = attrs.NestedObjectAttr('location', linkify=True)
|
||||||
name = attrs.TextAttr('name')
|
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')
|
tenant = attrs.RelatedObjectAttr('tenant', linkify=True, grouped_by='group')
|
||||||
status = attrs.ChoiceAttr('status')
|
status = attrs.ChoiceAttr('status')
|
||||||
rack_type = attrs.RelatedObjectAttr('rack_type', linkify=True, grouped_by='manufacturer')
|
rack_type = attrs.RelatedObjectAttr('rack_type', linkify=True, grouped_by='manufacturer')
|
||||||
|
|||||||
Reference in New Issue
Block a user