mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
More with select_related
This commit is contained in:
parent
44f8bc47e8
commit
3079acc132
@ -1556,7 +1556,7 @@ class InterfaceBulkImportView(PermissionRequiredMixin, BulkImportView):
|
||||
|
||||
|
||||
class InterfaceListView(ObjectListView):
|
||||
queryset = Interface.objects.select_related('device', 'interface__device')\
|
||||
queryset = Interface.objects.select_related('device')\
|
||||
.order_by('device', 'interface__name', 'interface__description')
|
||||
filter = filters.InterfaceFilter
|
||||
filter_form = forms.InterfaceFilterForm
|
||||
|
Loading…
Reference in New Issue
Block a user