[PR #17325] [MERGED] #8198: Rename CustomField.validation_unique to unique #15061

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17325
Author: @jeremystretch
Created: 8/30/2024
Status: Merged
Merged: 8/30/2024
Merged by: @jeremystretch

Base: featureHead: 8198-rename-customfield-validation_unique


📝 Commits (2)

  • 33bae84 #8198: Rename CustomField.validation_unique to unique
  • d678136 Update CustomField model documentation

📊 Changes

13 files changed (+62 additions, -62 deletions)

View changed files

📝 docs/models/extras/customfield.md (+5 -5)
📝 netbox/extras/api/serializers_/customfields.py (+4 -3)
📝 netbox/extras/filtersets.py (+2 -2)
📝 netbox/extras/forms/bulk_edit.py (+7 -9)
📝 netbox/extras/forms/bulk_import.py (+3 -4)
📝 netbox/extras/forms/filtersets.py (+11 -12)
📝 netbox/extras/forms/model_forms.py (+2 -2)
📝 netbox/extras/migrations/0118_customfield_uniqueness.py (+1 -1)
📝 netbox/extras/models/customfields.py (+11 -11)
📝 netbox/extras/tables/tables.py (+10 -7)
📝 netbox/extras/tests/test_customfields.py (+1 -1)
📝 netbox/netbox/models/features.py (+1 -1)
📝 netbox/templates/extras/customfield.html (+4 -4)

📄 Description

Rename the validation_unique field added on CustomField in #8198 to unique, so that it is more consistent with the required boolean field.


🔄 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/17325 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/30/2024 **Status:** ✅ Merged **Merged:** 8/30/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `8198-rename-customfield-validation_unique` --- ### 📝 Commits (2) - [`33bae84`](https://github.com/netbox-community/netbox/commit/33bae8469073db5b1ea1b29728ddd50c8e6cc6e6) #8198: Rename CustomField.validation_unique to unique - [`d678136`](https://github.com/netbox-community/netbox/commit/d6781366c2a22e4ec6908c40d264e4a06fe7f780) Update CustomField model documentation ### 📊 Changes **13 files changed** (+62 additions, -62 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/extras/customfield.md` (+5 -5) 📝 `netbox/extras/api/serializers_/customfields.py` (+4 -3) 📝 `netbox/extras/filtersets.py` (+2 -2) 📝 `netbox/extras/forms/bulk_edit.py` (+7 -9) 📝 `netbox/extras/forms/bulk_import.py` (+3 -4) 📝 `netbox/extras/forms/filtersets.py` (+11 -12) 📝 `netbox/extras/forms/model_forms.py` (+2 -2) 📝 `netbox/extras/migrations/0118_customfield_uniqueness.py` (+1 -1) 📝 `netbox/extras/models/customfields.py` (+11 -11) 📝 `netbox/extras/tables/tables.py` (+10 -7) 📝 `netbox/extras/tests/test_customfields.py` (+1 -1) 📝 `netbox/netbox/models/features.py` (+1 -1) 📝 `netbox/templates/extras/customfield.html` (+4 -4) </details> ### 📄 Description Rename the `validation_unique` field added on CustomField in #8198 to `unique`, so that it is more consistent with the `required` boolean field. --- <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:19:43 +01:00
adam closed this issue 2025-12-30 00:19:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15061