[PR #17235] [MERGED] Fixes: #16949 - Device count column on Sites table #15033

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17235
Author: @bctiemann
Created: 8/21/2024
Status: Merged
Merged: 8/22/2024
Merged by: @jeremystretch

Base: developHead: 16949-add-device-count-to-site-list


📝 Commits (1)

  • d2de7cf Add a Devices column with device_count hyperlink (via count_related) to SiteListView

📊 Changes

2 files changed (+8 additions, -1 deletions)

View changed files

📝 netbox/dcim/tables/sites.py (+5 -0)
📝 netbox/dcim/views.py (+3 -1)

📄 Description

Fixes: #16949 - Device count column on Sites table

Adds a Devices column with device_count hyperlink (via count_related) to the SiteListView table.

Tested with populated demo data and it seems acceptably performant.


🔄 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/17235 **Author:** [@bctiemann](https://github.com/bctiemann) **Created:** 8/21/2024 **Status:** ✅ Merged **Merged:** 8/22/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `16949-add-device-count-to-site-list` --- ### 📝 Commits (1) - [`d2de7cf`](https://github.com/netbox-community/netbox/commit/d2de7cf453d655dbc2f06015dff0d71b1cdee400) Add a Devices column with device_count hyperlink (via count_related) to SiteListView ### 📊 Changes **2 files changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/tables/sites.py` (+5 -0) 📝 `netbox/dcim/views.py` (+3 -1) </details> ### 📄 Description ### Fixes: #16949 - Device count column on Sites table Adds a Devices column with device_count hyperlink (via count_related) to the SiteListView table. Tested with populated demo data and it seems acceptably performant. --- <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:34 +01:00
adam closed this issue 2025-12-30 00:19:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15033