UI form slug field value changes every time the name is updated #6672

Closed
opened 2025-12-29 19:43:42 +01:00 by adam · 2 comments
Owner

Originally created by @abhi1693 on GitHub (Jul 16, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.6

Python version

3.10

Steps to Reproduce

  1. Create a contact role (End User) with slug (end-user-1)
  2. Edit the same role and change the name to Customers
  3. Notice the slug field gets changed

Expected Behavior

The slug field should only change when it is empty

Observed Behavior

The slug field always updates

Originally created by @abhi1693 on GitHub (Jul 16, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.6 ### Python version 3.10 ### Steps to Reproduce 1. Create a contact role (End User) with slug (end-user-1) 2. Edit the same role and change the name to `Customers` 3. Notice the slug field gets changed ### Expected Behavior The slug field should only change when it is empty ### Observed Behavior The slug field always updates
adam added the type: bugstatus: accepted labels 2025-12-29 19:43:42 +01:00
adam closed this issue 2025-12-29 19:43:42 +01:00
Author
Owner

@abhi1693 commented on GitHub (Jul 16, 2022):

To add more context, this issue is on every form there is a slug field. We use slug fields in automation rules and do not expect these to change once these are set. However, sometimes there is a need to update the name field but not change the slugs to avoid breaking our automation workflows.

@abhi1693 commented on GitHub (Jul 16, 2022): To add more context, this issue is on every form there is a slug field. We use `slug` fields in automation rules and do not expect these to change once these are set. However, sometimes there is a need to update the `name` field but not change the `slugs` to avoid breaking our automation workflows.
Author
Owner

@jeremystretch commented on GitHub (Jul 18, 2022):

This is a regression of #3810 apparently introduced in v3.0.

@jeremystretch commented on GitHub (Jul 18, 2022): This is a regression of #3810 apparently introduced in v3.0.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6672