Skip to content

Commit 0190c02

Browse files
authored
Merge pull request #10420 from netbox-community/9497-fix-site-location-nonracked-device-display
Fixes #9497 - Change non-racked filter for sites/locations
2 parents 86d366b + 71d71a6 commit 0190c02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netbox/dcim/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def get_extra_context(self, request, instance):
355355

356356
nonracked_devices = Device.objects.filter(
357357
site=instance,
358-
position__isnull=True,
358+
rack__isnull=True,
359359
parent_bay__isnull=True
360360
).prefetch_related('device_type__manufacturer', 'parent_bay', 'device_role')
361361

@@ -450,7 +450,7 @@ def get_extra_context(self, request, instance):
450450

451451
nonracked_devices = Device.objects.filter(
452452
location=instance,
453-
position__isnull=True,
453+
rack__isnull=True,
454454
parent_bay__isnull=True
455455
).prefetch_related('device_type__manufacturer', 'parent_bay', 'device_role')
456456

0 commit comments

Comments
 (0)