mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fix RestrictedQuerySet evaluation for VLAN CSV export
This commit is contained in:
@ -720,7 +720,10 @@ class VLANGroupVLANsView(ObjectView):
|
||||
#
|
||||
|
||||
class VLANListView(ObjectListView):
|
||||
queryset = VLAN.objects.prefetch_related('site', 'group', 'tenant', 'role').prefetch_related('prefixes')
|
||||
queryset = VLAN.objects.prefetch_related(
|
||||
Prefetch('prefixes', Prefix.objects.unrestricted()),
|
||||
'site', 'group', 'tenant', 'role'
|
||||
)
|
||||
filterset = filters.VLANFilterSet
|
||||
filterset_form = forms.VLANFilterForm
|
||||
table = tables.VLANDetailTable
|
||||
|
Reference in New Issue
Block a user