[PR #10313] [MERGED] Fixes #10304: Enable cloning for custom fields & custom links #13606

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

📋 Pull Request Information

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

Base: developHead: 10304-customfield-clone


📝 Commits (2)

  • cd1ad45 Move clone() to CloningMixin
  • 2b2a41e Enable cloning for custom fields & custom links

📊 Changes

4 files changed (+45 additions, -27 deletions)

View changed files

📝 netbox/extras/models/customfields.py (+8 -2)
📝 netbox/extras/models/models.py (+6 -2)
📝 netbox/netbox/models/__init__.py (+2 -22)
📝 netbox/netbox/models/features.py (+29 -1)

📄 Description

Fixes: #10304

  • Move the clone() method from NetBoxModel to a mixin class
  • Define clone_fields on the CustomField and CustomLink models

🔄 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/10313 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 9/9/2022 **Status:** ✅ Merged **Merged:** 9/9/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `10304-customfield-clone` --- ### 📝 Commits (2) - [`cd1ad45`](https://github.com/netbox-community/netbox/commit/cd1ad452da5fdffda3d2dd50d44c44b2d5d79b2d) Move clone() to CloningMixin - [`2b2a41e`](https://github.com/netbox-community/netbox/commit/2b2a41edd29042e7b94484bd3476eccb73dcb918) Enable cloning for custom fields & custom links ### 📊 Changes **4 files changed** (+45 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/models/customfields.py` (+8 -2) 📝 `netbox/extras/models/models.py` (+6 -2) 📝 `netbox/netbox/models/__init__.py` (+2 -22) 📝 `netbox/netbox/models/features.py` (+29 -1) </details> ### 📄 Description ### Fixes: #10304 - Move the `clone()` method from NetBoxModel to a mixin class - Define `clone_fields` on the CustomField and CustomLink models --- <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:19:50 +01:00
adam closed this issue 2025-12-29 23:19:50 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13606