[PR #8261] [MERGED] Closes #7006: Custom object fields #13336

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8261
Author: @jeremystretch
Created: 1/6/2022
Status: Merged
Merged: 1/6/2022
Merged by: @jeremystretch

Base: featureHead: 7006-custom-object-fields


📝 Commits (8)

📊 Changes

13 files changed (+618 additions, -261 deletions)

View changed files

📝 docs/models/extras/customfield.md (+6 -0)
📝 docs/release-notes/version-3.2.md (+8 -0)
📝 netbox/extras/api/customfields.py (+15 -3)
📝 netbox/extras/choices.py (+4 -0)
📝 netbox/extras/forms/customfields.py (+8 -5)
📝 netbox/extras/forms/models.py (+1 -1)
netbox/extras/migrations/0069_custom_object_field.py (+18 -0)
📝 netbox/extras/models/customfields.py (+66 -3)
📝 netbox/extras/tests/test_customfields.py (+448 -235)
📝 netbox/extras/tests/test_forms.py (+19 -2)
📝 netbox/netbox/models.py (+9 -6)
📝 netbox/netbox/views/generic/bulk_views.py (+2 -2)
📝 netbox/templates/inc/panels/custom_fields.html (+14 -4)

📄 Description

Closes: #7006

  • Add object and multiobject custom field types
  • Implement the serialize() and deserialize() methods on CustomFields to handle non-JSON types
  • Refactor & extend custom field tests

🔄 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/8261 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/6/2022 **Status:** ✅ Merged **Merged:** 1/6/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `7006-custom-object-fields` --- ### 📝 Commits (8) - [`fa1e28e`](https://github.com/netbox-community/netbox/commit/fa1e28e860c4bdb3e585a968bd248a2ac666e1f6) Initial work on #7006 - [`954d811`](https://github.com/netbox-community/netbox/commit/954d81147e7d65ad099fc122ab2ea790b0eb0e0b) Reindex migrations - [`271b7ad`](https://github.com/netbox-community/netbox/commit/271b7adeb830eaafa6bb117c49aee3ceff7b1adc) Extend to support the assignment of multiple objects per field - [`85c0637`](https://github.com/netbox-community/netbox/commit/85c06372ffe04f0fbb4ac6c05394bc1f819785d0) Fix bulk editing for custom object fields - [`7aa1fab`](https://github.com/netbox-community/netbox/commit/7aa1fabbd7f4117242d2bdc564fd4dee31182edb) Fix tests - [`1e80cc6`](https://github.com/netbox-community/netbox/commit/1e80cc6db5dbbc7314519c2014d282f7dc3d85df) Clean up & extend custom field tests - [`bfc6954`](https://github.com/netbox-community/netbox/commit/bfc695434c8daf2642bee6e5fd2e400aecd31b9c) Add object_type validation - [`3002382`](https://github.com/netbox-community/netbox/commit/3002382edc77ad8872940dd3e3b24bae0fea407b) Documentation and changelog for #7006 ### 📊 Changes **13 files changed** (+618 additions, -261 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/extras/customfield.md` (+6 -0) 📝 `docs/release-notes/version-3.2.md` (+8 -0) 📝 `netbox/extras/api/customfields.py` (+15 -3) 📝 `netbox/extras/choices.py` (+4 -0) 📝 `netbox/extras/forms/customfields.py` (+8 -5) 📝 `netbox/extras/forms/models.py` (+1 -1) ➕ `netbox/extras/migrations/0069_custom_object_field.py` (+18 -0) 📝 `netbox/extras/models/customfields.py` (+66 -3) 📝 `netbox/extras/tests/test_customfields.py` (+448 -235) 📝 `netbox/extras/tests/test_forms.py` (+19 -2) 📝 `netbox/netbox/models.py` (+9 -6) 📝 `netbox/netbox/views/generic/bulk_views.py` (+2 -2) 📝 `netbox/templates/inc/panels/custom_fields.html` (+14 -4) </details> ### 📄 Description ### Closes: #7006 - Add `object` and `multiobject` custom field types - Implement the `serialize()` and `deserialize()` methods on CustomFields to handle non-JSON types - Refactor & extend custom field tests --- <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 22:26:50 +01:00
adam closed this issue 2025-12-29 22:26:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13336