[PR #16120] [MERGED] Closes #16119: Update RestrictedPrefetch for compatiblity with Django 5.0 #14783

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/16120
Author: @jeremystretch
Created: 5/13/2024
Status: Merged
Merged: 5/14/2024
Merged by: @jeremystretch

Base: developHead: 16119-update-prefetch-methods


📝 Commits (2)

  • 6ef5b4e Update queryset resolution methods for compatibility with Django 5.0
  • 604d37d Refactor & expand search view tests

📊 Changes

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

View changed files

📝 netbox/extras/tables/tables.py (+3 -3)
📝 netbox/netbox/constants.py (+3 -0)
📝 netbox/netbox/tables/tables.py (+2 -1)
📝 netbox/netbox/tests/test_views.py (+57 -5)
📝 netbox/utilities/fields.py (+24 -13)
📝 netbox/utilities/querysets.py (+5 -5)

📄 Description

Fixes: #16119

  • Rename the appropriate methods to fix prefetch optimization for global search
  • Refactor & extend global search tests

🔄 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/16120 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 5/13/2024 **Status:** ✅ Merged **Merged:** 5/14/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `16119-update-prefetch-methods` --- ### 📝 Commits (2) - [`6ef5b4e`](https://github.com/netbox-community/netbox/commit/6ef5b4e4fcb31145e0f5c6207aaecd331ce65554) Update queryset resolution methods for compatibility with Django 5.0 - [`604d37d`](https://github.com/netbox-community/netbox/commit/604d37dbe3f974ec9e686fb73bfc1c7b98f404f1) Refactor & expand search view tests ### 📊 Changes **6 files changed** (+94 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/tables/tables.py` (+3 -3) 📝 `netbox/netbox/constants.py` (+3 -0) 📝 `netbox/netbox/tables/tables.py` (+2 -1) 📝 `netbox/netbox/tests/test_views.py` (+57 -5) 📝 `netbox/utilities/fields.py` (+24 -13) 📝 `netbox/utilities/querysets.py` (+5 -5) </details> ### 📄 Description ### Fixes: #16119 - Rename the appropriate methods to fix prefetch optimization for global search - Refactor & extend global search tests --- <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:26:42 +01:00
adam closed this issue 2025-12-29 23:26:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14783