[PR #17553] [MERGED] 17419 fix MPTT issue with migrations for nested module bays #15124

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17553
Author: @arthanson
Created: 9/19/2024
Status: Merged
Merged: 9/26/2024
Merged by: @jeremystretch

Base: developHead: 17419-mptt-module-bay


📝 Commits (4)

  • d716d29 17419 rebuild module bay tree on upgrade
  • b469e07 17419 rebuild module bay tree on upgrade
  • 0dd2a65 Merge branch 'develop' into 17419-mptt-module-bay
  • b44b12d 17419 use get_model

📊 Changes

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

View changed files

netbox/dcim/migrations/0191_module_bay_rebuild.py (+26 -0)

📄 Description

Fixes: #17419

Note in the migration had to use the actual model and not apps.get_model as the manager for rebuild is needed.


🔄 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/17553 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 9/19/2024 **Status:** ✅ Merged **Merged:** 9/26/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `17419-mptt-module-bay` --- ### 📝 Commits (4) - [`d716d29`](https://github.com/netbox-community/netbox/commit/d716d29c0a3ec61a12a29ece93578e2d52c1cb79) 17419 rebuild module bay tree on upgrade - [`b469e07`](https://github.com/netbox-community/netbox/commit/b469e07ff9a6057c89f13b771c6bd28c5f4c2250) 17419 rebuild module bay tree on upgrade - [`0dd2a65`](https://github.com/netbox-community/netbox/commit/0dd2a65007e9294b31caa5f16491d60e79fc0e06) Merge branch 'develop' into 17419-mptt-module-bay - [`b44b12d`](https://github.com/netbox-community/netbox/commit/b44b12dce9d553070e997fdb6fbaaa0f7269fb0f) 17419 use get_model ### 📊 Changes **1 file changed** (+26 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `netbox/dcim/migrations/0191_module_bay_rebuild.py` (+26 -0) </details> ### 📄 Description ### Fixes: #17419 Note in the migration had to use the actual model and not `apps.get_model` as the manager for rebuild is needed. --- <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:20:08 +01:00
adam closed this issue 2025-12-30 00:20:08 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15124