[PR #9886] [MERGED] Remove deprecated usage of prefetch_related #13533

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9886
Author: @hagbarddenstore
Created: 7/30/2022
Status: Merged
Merged: 8/1/2022
Merged by: @jeremystretch

Base: featureHead: issue_9699


📝 Commits (1)

  • 6904666 Remove deprecated usage of prefetch_related

📊 Changes

6 files changed (+101 additions, -94 deletions)

View changed files

📝 netbox/circuits/views.py (+10 -5)
📝 netbox/dcim/views.py (+45 -45)
📝 netbox/extras/views.py (+2 -2)
📝 netbox/ipam/views.py (+31 -30)
📝 netbox/tenancy/views.py (+5 -5)
📝 netbox/virtualization/views.py (+8 -7)

📄 Description

Fixes: #9699

Removes deprecated usage of prefetch_related for views which are using a NetBoxTable to display its data.


🔄 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/9886 **Author:** [@hagbarddenstore](https://github.com/hagbarddenstore) **Created:** 7/30/2022 **Status:** ✅ Merged **Merged:** 8/1/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `issue_9699` --- ### 📝 Commits (1) - [`6904666`](https://github.com/netbox-community/netbox/commit/6904666e2a6e9be451be3acbdd669af012aec45b) Remove deprecated usage of prefetch_related ### 📊 Changes **6 files changed** (+101 additions, -94 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/views.py` (+10 -5) 📝 `netbox/dcim/views.py` (+45 -45) 📝 `netbox/extras/views.py` (+2 -2) 📝 `netbox/ipam/views.py` (+31 -30) 📝 `netbox/tenancy/views.py` (+5 -5) 📝 `netbox/virtualization/views.py` (+8 -7) </details> ### 📄 Description ### Fixes: #9699 Removes deprecated usage of `prefetch_related` for views which are using a `NetBoxTable` to display its data. --- <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:25 +01:00
adam closed this issue 2025-12-29 23:19:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13533