[PR #17291] [MERGED] Fixes #17278: Rebuild the tree after bulk editing MPTT-enabled object types #15049

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17291
Author: @jeremystretch
Created: 8/28/2024
Status: Merged
Merged: 8/28/2024
Merged by: @jeremystretch

Base: developHead: 17278-bulk-edit-rebuild-mptt


📝 Commits (1)

  • e909285 Fixes #17278: Rebuild the tree after bulk editing MPTT-enabled object types

📊 Changes

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

View changed files

📝 netbox/netbox/views/generic/bulk_views.py (+6 -1)

📄 Description

Fixes: #17278

Extend BulkEditView to call model.objects.rebuild() for MPTT-enabled models.

(It's not clear exactly why this is necessary, as save() is being called on each object individually.)


🔄 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/17291 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/28/2024 **Status:** ✅ Merged **Merged:** 8/28/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `17278-bulk-edit-rebuild-mptt` --- ### 📝 Commits (1) - [`e909285`](https://github.com/netbox-community/netbox/commit/e9092857c5127a3d49849bed0629dc44b95b6861) Fixes #17278: Rebuild the tree after bulk editing MPTT-enabled object types ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/views/generic/bulk_views.py` (+6 -1) </details> ### 📄 Description ### Fixes: #17278 Extend BulkEditView to call `model.objects.rebuild()` for MPTT-enabled models. (It's not clear exactly why this is necessary, as `save()` is being called on each object individually.) --- <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:19:39 +01:00
adam closed this issue 2025-12-30 00:19:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15049