[PR #20687] [CLOSED] Closes #20685: add cloneable custom fields to templates #16011

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20687
Author: @anshulkamath
Created: 10/26/2025
Status: Closed

Base: mainHead: templated-custom-fields


📝 Commits (4)

  • baf7a33 feat: add cloneable custom fields to templates
  • a3bac05 fixup! feat: add cloneable custom fields to templates
  • 56d1e17 fix(dcim): serialize custom fields in api requests
  • 40c7732 chore: apply linter

📊 Changes

4 files changed (+127 additions, -23 deletions)

View changed files

📝 netbox/dcim/api/serializers_/devicetype_components.py (+11 -10)
📝 netbox/dcim/forms/model_forms.py (+1 -2)
netbox/dcim/migrations/0216_consoleporttemplate_custom_field_data_and_more.py (+62 -0)
📝 netbox/dcim/models/device_component_templates.py (+53 -11)

📄 Description

Closes: #20685

adds the ability to assign custom fields to component templates. any template with a cloneable custom field will be cloned to the child instance of the template.


🔄 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/20687 **Author:** [@anshulkamath](https://github.com/anshulkamath) **Created:** 10/26/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `templated-custom-fields` --- ### 📝 Commits (4) - [`baf7a33`](https://github.com/netbox-community/netbox/commit/baf7a33da70af7ae849f81a6a6fc2da059cae65c) feat: add cloneable custom fields to templates - [`a3bac05`](https://github.com/netbox-community/netbox/commit/a3bac054ac085cb13522ab0cf8cf8935109d59b5) fixup! feat: add cloneable custom fields to templates - [`56d1e17`](https://github.com/netbox-community/netbox/commit/56d1e1768517145a893d77841ae417c314d4a530) fix(dcim): serialize custom fields in api requests - [`40c7732`](https://github.com/netbox-community/netbox/commit/40c77328a5b52af62ff3a258063fc511cd09b429) chore: apply linter ### 📊 Changes **4 files changed** (+127 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/serializers_/devicetype_components.py` (+11 -10) 📝 `netbox/dcim/forms/model_forms.py` (+1 -2) ➕ `netbox/dcim/migrations/0216_consoleporttemplate_custom_field_data_and_more.py` (+62 -0) 📝 `netbox/dcim/models/device_component_templates.py` (+53 -11) </details> ### 📄 Description ### Closes: #20685 adds the ability to assign custom fields to component templates. any template with a cloneable custom field will be cloned to the child instance of the template. --- <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:25:18 +01:00
adam closed this issue 2025-12-30 00:25:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16011