[PR #12092] [MERGED] 11746 fix delete custom field #13909

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/12092
Author: @arthanson
Created: 3/30/2023
Status: Merged
Merged: 4/4/2023
Merged by: @jeremystretch

Base: developHead: 11746-custom-field-delete


📝 Commits (2)

  • 10aeac8 11746 delete custom field
  • 9a04f2c 11746 use filter instead of exclude

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 netbox/extras/models/customfields.py (+1 -1)

📄 Description

Fixes: #11746

Cleans up a deleted custom field. Previous code would check if isnull, but this would leave empty custom-fields in the database and cause the issue on save, new code removes if it exists.


🔄 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/12092 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 3/30/2023 **Status:** ✅ Merged **Merged:** 4/4/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `11746-custom-field-delete` --- ### 📝 Commits (2) - [`10aeac8`](https://github.com/netbox-community/netbox/commit/10aeac838422fc03e1479d823a18202552092e87) 11746 delete custom field - [`9a04f2c`](https://github.com/netbox-community/netbox/commit/9a04f2cfdadb0e505a01c596b1af7e9798cb70ef) 11746 use filter instead of exclude ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/models/customfields.py` (+1 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #11746 <!-- Please include a summary of the proposed changes below. --> Cleans up a deleted custom field. Previous code would check if isnull, but this would leave empty custom-fields in the database and cause the issue on save, new code removes if it exists. --- <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:21:29 +01:00
adam closed this issue 2025-12-29 23:21:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13909