Custom Field still exists after deleted #7638

Closed
opened 2025-12-29 20:26:20 +01:00 by adam · 0 comments
Owner

Originally created by @dwi2214 on GitHub (Feb 14, 2023).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.4.4

Python version

3.9

Steps to Reproduce

  1. Create "Custom Field" dcim.device with name "123"
  2. Create "Custom Field" dcim.device with name "aaa"
  3. Update and add some value on custom field "aaa"
  4. Remove custom field "123"
  5. Reupdate custom field "aaa", and showing error, like https://demo.netbox.dev/dcim/devices/148/edit/
    image
  6. custom field has been deleted
    image

Expected Behavior

  • Custom field deleted and not pop up error

Observed Behavior

  • I just check documentation, its correct just "should consist only of alphanumeric characters and underscores" , but as human error suddenly we can create numeric as customfield name
    image

  • Maybe adding checking to reject numeric on customfield name

  • And how to force remove custom_field "123", causing error every update value ?

Thank youu

Originally created by @dwi2214 on GitHub (Feb 14, 2023). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.4.4 ### Python version 3.9 ### Steps to Reproduce 1. Create "Custom Field" dcim.device with name "123" 2. Create "Custom Field" dcim.device with name "aaa" 3. Update and add some value on custom field "aaa" 4. Remove custom field "123" 5. Reupdate custom field "aaa", and showing error, like https://demo.netbox.dev/dcim/devices/148/edit/ ![image](https://user-images.githubusercontent.com/116805958/218706094-1c63bd81-d5b0-402c-935b-926a5473496b.png) 6. custom field has been deleted ![image](https://user-images.githubusercontent.com/116805958/218706252-db647291-477e-4c00-8513-b741640eff6f.png) ### Expected Behavior - Custom field deleted and not pop up error ### Observed Behavior - I just check documentation, its correct just "should consist only of alphanumeric characters and underscores" , but as human error suddenly we can create numeric as customfield name ![image](https://user-images.githubusercontent.com/116805958/218706749-a4e5f358-7e3e-4140-8952-e29ddfa827b4.png) - Maybe adding checking to reject numeric on customfield name - And how to force remove custom_field "123", causing error every update value ? Thank youu
adam added the type: bugstatus: accepted labels 2025-12-29 20:26:20 +01:00
adam closed this issue 2025-12-29 20:26:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7638