[PR #15366] [MERGED] Closes #15357: Rename object_type field on CustomField model #14577

Closed
opened 2025-12-29 23:25:17 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15366
Author: @jeremystretch
Created: 3/7/2024
Status: Merged
Merged: 3/9/2024
Merged by: @jeremystretch

Base: featureHead: 15357-rename-customfield-object_type


📝 Commits (1)

  • 380ac5c Closes #15357: Rename CustomField.object_type to related_object_type

📊 Changes

15 files changed (+97 additions, -44 deletions)

View changed files

📝 docs/models/extras/customfield.md (+1 -1)
📝 netbox/extras/api/customfields.py (+3 -3)
📝 netbox/extras/api/serializers_/customfields.py (+5 -5)
📝 netbox/extras/filtersets.py (+4 -0)
📝 netbox/extras/forms/bulk_import.py (+2 -2)
📝 netbox/extras/forms/filtersets.py (+4 -4)
📝 netbox/extras/forms/model_forms.py (+3 -3)
netbox/extras/migrations/0113_customfield_rename_object_type.py (+16 -0)
📝 netbox/extras/models/customfields.py (+8 -8)
📝 netbox/extras/tables/tables.py (+6 -3)
📝 netbox/extras/tests/test_customfields.py (+23 -11)
📝 netbox/extras/tests/test_filtersets.py (+16 -0)
📝 netbox/extras/tests/test_forms.py (+2 -2)
📝 netbox/extras/tests/test_views.py (+1 -1)
📝 netbox/templates/extras/customfield.html (+3 -1)

📄 Description

Fixes: #15357

Rename object_type to related_object_type on CustomField


🔄 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/15366 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/7/2024 **Status:** ✅ Merged **Merged:** 3/9/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `15357-rename-customfield-object_type` --- ### 📝 Commits (1) - [`380ac5c`](https://github.com/netbox-community/netbox/commit/380ac5c7dcc0ce6cd3ae63c15b312175a4c33568) Closes #15357: Rename CustomField.object_type to related_object_type ### 📊 Changes **15 files changed** (+97 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/extras/customfield.md` (+1 -1) 📝 `netbox/extras/api/customfields.py` (+3 -3) 📝 `netbox/extras/api/serializers_/customfields.py` (+5 -5) 📝 `netbox/extras/filtersets.py` (+4 -0) 📝 `netbox/extras/forms/bulk_import.py` (+2 -2) 📝 `netbox/extras/forms/filtersets.py` (+4 -4) 📝 `netbox/extras/forms/model_forms.py` (+3 -3) ➕ `netbox/extras/migrations/0113_customfield_rename_object_type.py` (+16 -0) 📝 `netbox/extras/models/customfields.py` (+8 -8) 📝 `netbox/extras/tables/tables.py` (+6 -3) 📝 `netbox/extras/tests/test_customfields.py` (+23 -11) 📝 `netbox/extras/tests/test_filtersets.py` (+16 -0) 📝 `netbox/extras/tests/test_forms.py` (+2 -2) 📝 `netbox/extras/tests/test_views.py` (+1 -1) 📝 `netbox/templates/extras/customfield.html` (+3 -1) </details> ### 📄 Description ### Fixes: #15357 Rename `object_type` to `related_object_type` on CustomField --- <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-29 23:25:17 +01:00
adam closed this issue 2025-12-29 23:25:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14577