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:
@@ -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'
|
||||
|
Reference in New Issue
Block a user