mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 08:08:15 -06:00
More attempts to fix InterfaceListView
This commit is contained in:
parent
2232b04256
commit
9fccbc5c3c
@ -1239,7 +1239,7 @@ class Interface(models.Model):
|
||||
self.device.identifier,
|
||||
self.lag,
|
||||
self.name,
|
||||
self.mac,
|
||||
self.mac_address,
|
||||
self.form_factor,
|
||||
self.description,
|
||||
])
|
||||
|
@ -1556,8 +1556,7 @@ class InterfaceBulkImportView(PermissionRequiredMixin, BulkImportView):
|
||||
|
||||
|
||||
class InterfaceListView(ObjectListView):
|
||||
#queryset = Interface.objects.all()
|
||||
queryset = Interface.objects.select_related('device__name')
|
||||
queryset = Interface.objects.all().filter(device=device)
|
||||
filter = filters.InterfaceFilter
|
||||
filter_form = forms.InterfaceFilterForm
|
||||
table = tables.InterfaceListTable
|
||||
|
Loading…
Reference in New Issue
Block a user