diff --git a/docs/release-notes/version-3.1.md b/docs/release-notes/version-3.1.md index 9f9ed3b44..f70ee6951 100644 --- a/docs/release-notes/version-3.1.md +++ b/docs/release-notes/version-3.1.md @@ -8,6 +8,7 @@ * [#8057](https://github.com/netbox-community/netbox/issues/8057) - Dynamic object tables using HTMX * [#8080](https://github.com/netbox-community/netbox/issues/8080) - Link to NAT IPs for device/VM primary IPs * [#8081](https://github.com/netbox-community/netbox/issues/8081) - Allow creating services directly from navigation menu +* [#8083](https://github.com/netbox-community/netbox/issues/8083) - Removed "related devices" panel from device view * [#8108](https://github.com/netbox-community/netbox/issues/8108) - Improve breadcrumb links for device/VM components ### Bug Fixes diff --git a/netbox/dcim/views.py b/netbox/dcim/views.py index a1d1102de..3180d47b1 100644 --- a/netbox/dcim/views.py +++ b/netbox/dcim/views.py @@ -1316,19 +1316,9 @@ class DeviceView(generic.ObjectView): # Services services = Service.objects.restrict(request.user, 'view').filter(device=instance) - # Find up to ten devices in the same site with the same functional role for quick reference. - related_devices = Device.objects.restrict(request.user, 'view').filter( - site=instance.site, device_role=instance.device_role - ).exclude( - pk=instance.pk - ).prefetch_related( - 'rack', 'device_type__manufacturer' - )[:10] - return { 'services': services, 'vc_members': vc_members, - 'related_devices': related_devices, 'active_tab': 'device', } diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index b7750a640..31f2a18bd 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -148,6 +148,12 @@ {% endif %} + {% include 'inc/panels/custom_fields.html' %} + {% include 'inc/panels/tags.html' %} + {% include 'inc/panels/comments.html' %} + {% plugin_left_page object %} + +