Change name of existing custom field #4745

Closed
opened 2025-12-29 19:20:04 +01:00 by adam · 1 comment
Owner

Originally created by @top1ing on GitHub (Apr 9, 2021).

NetBox version

v2.11-beta1

Python version

3.8

Steps to Reproduce

  1. Create "Text" type custom field with name "cf_text-field" on DCIM > device
  2. Go to device, for example "DC-Berlin", and add text "Some text" in created custom field "cf_text-field".
  3. Go to Device page and add "cf_text-field" field to table view.
  4. Go to Admin page and change name of custom field "cf_text-field" to "cf_text-field_changed".

Expected Behavior

Value of custom field remains in Device, but with new custom field name.
On Devices page, the "cf_text-field" column name changes to "cf_text-field_changed".

Observed Behavior

On Device "DC-Berlin" page custom field "cf_text-field_changed" displays with empty value.
On Devices page column "cf_text-field" is still displays, but new custom field "cf_text-field_changed" also available in configure of table view.

Originally created by @top1ing on GitHub (Apr 9, 2021). ### NetBox version v2.11-beta1 ### Python version 3.8 ### Steps to Reproduce 1. Create "Text" type custom field with name "cf_text-field" on DCIM > device 2. Go to device, for example "DC-Berlin", and add text "Some text" in created custom field "cf_text-field". 3. Go to Device page and add "cf_text-field" field to table view. 4. Go to Admin page and change name of custom field "cf_text-field" to "cf_text-field_changed". ### Expected Behavior Value of custom field remains in Device, but with new custom field name. On Devices page, the "cf_text-field" column name changes to "cf_text-field_changed". ### Observed Behavior On Device "DC-Berlin" page custom field "cf_text-field_changed" displays with empty value. On Devices page column "cf_text-field" is still displays, but new custom field "cf_text-field_changed" also available in configure of table view.
adam added the type: bugstatus: duplicate labels 2025-12-29 19:20:04 +01:00
adam closed this issue 2025-12-29 19:20:04 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 9, 2021):

Thank you for submitting this issue, however it appears that this topic has already been raised. Please see issue #5652 for further discussion.

@jeremystretch commented on GitHub (Apr 9, 2021): Thank you for submitting this issue, however it appears that this topic has already been raised. Please see issue #5652 for further discussion.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4745