[PR #19859] [MERGED] Fixes #19827: Enforce uniqueness for device role names & slugs #15740

Closed
opened 2025-12-30 00:23:45 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19859
Author: @jeremystretch
Created: 7/10/2025
Status: Merged
Merged: 7/14/2025
Merged by: @arthanson

Base: mainHead: 19827-device-role-uniqueness


📝 Commits (2)

📊 Changes

3 files changed (+69 additions, -3 deletions)

View changed files

netbox/dcim/migrations/0208_devicerole_uniqueness.py (+44 -0)
📝 netbox/dcim/models/devices.py (+22 -0)
📝 netbox/dcim/tests/test_views.py (+3 -3)

📄 Description

Fixes: #19827

Fix enforcement of unique name & slug for device roles


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/19859 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 7/10/2025 **Status:** ✅ Merged **Merged:** 7/14/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `19827-device-role-uniqueness` --- ### 📝 Commits (2) - [`89a90a8`](https://github.com/netbox-community/netbox/commit/89a90a8ef6df92e974d7b1352b1d4be53157670b) Fixes #19827: Enforce uniqueness for device role names & slugs - [`a99b93f`](https://github.com/netbox-community/netbox/commit/a99b93f44b907a638a59c4af182f5fe79b8591ab) Fix test data ### 📊 Changes **3 files changed** (+69 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `netbox/dcim/migrations/0208_devicerole_uniqueness.py` (+44 -0) 📝 `netbox/dcim/models/devices.py` (+22 -0) 📝 `netbox/dcim/tests/test_views.py` (+3 -3) </details> ### 📄 Description ### Fixes: #19827 Fix enforcement of unique name & slug for device roles --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:23:45 +01:00
adam closed this issue 2025-12-30 00:23:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15740