[PR #20279] [MERGED] Fixes #20252: Remove generic AddObject from ObjectChildrenView #15871

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20279
Author: @pheus
Created: 9/5/2025
Status: Merged
Merged: 9/5/2025
Merged by: @jnovinger

Base: mainHead: 20252-remove-add-action-from-objectchildrenview


📝 Commits (1)

  • e987f73 fix(views): Remove generic AddObject from ObjectChildrenView

📊 Changes

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

View changed files

📝 netbox/netbox/views/generic/object_views.py (+2 -2)

📄 Description

Fixes: #20252

Summary

Remove the generic AddObject action from ObjectChildrenView.
This prevents duplicate “Add” buttons on child object list views and keeps only the contextual add action (e.g., Add Prefix).
No API/DB changes; plugins that already register a contextual add action are unaffected.


🔄 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/20279 **Author:** [@pheus](https://github.com/pheus) **Created:** 9/5/2025 **Status:** ✅ Merged **Merged:** 9/5/2025 **Merged by:** [@jnovinger](https://github.com/jnovinger) **Base:** `main` ← **Head:** `20252-remove-add-action-from-objectchildrenview` --- ### 📝 Commits (1) - [`e987f73`](https://github.com/netbox-community/netbox/commit/e987f7354458bdc09eef81c0a9de94a43e26bdec) fix(views): Remove generic AddObject from ObjectChildrenView ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/views/generic/object_views.py` (+2 -2) </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: #20252 ### Summary Remove the generic `AddObject` action from `ObjectChildrenView`. This prevents duplicate “Add” buttons on child object list views and keeps only the contextual add action (e.g., **Add Prefix**). No API/DB changes; plugins that already register a contextual add action are unaffected. --- <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:24:31 +01:00
adam closed this issue 2025-12-30 00:24:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15871