1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix evaluation of RestrictedQuerySet

This commit is contained in:
Jeremy Stretch
2020-06-29 14:41:43 -04:00
parent 5ed6136915
commit 71812d1bd5
2 changed files with 9 additions and 5 deletions

View File

@@ -673,7 +673,7 @@ class Rack(ChangeLoggedModel, CustomFieldModel):
# Add devices to rack units list
if self.pk:
queryset = Device.objects.prefetch_related(
queryset = Device.objects.unrestricted().prefetch_related(
'device_type',
'device_type__manufacturer',
'device_role'