Working on table view

This commit is contained in:
Joseph Kennedy 2017-08-03 01:36:23 -04:00
parent 9fccbc5c3c
commit 3f6cba446c
2 changed files with 8 additions and 1 deletions

View File

@ -1241,7 +1241,14 @@ class Interface(models.Model):
self.name, self.name,
self.mac_address, self.mac_address,
self.form_factor, self.form_factor,
self.enabled,
self.description, self.description,
self.mtu,
self.mgmt_only,
self.is_virtual,
self.is_wireless,
self.is_connected,
self.is_lag,
]) ])

View File

@ -1556,7 +1556,7 @@ class InterfaceBulkImportView(PermissionRequiredMixin, BulkImportView):
class InterfaceListView(ObjectListView): class InterfaceListView(ObjectListView):
queryset = Interface.objects.all().filter(device=device) queryset = Interface.objects.all()
filter = filters.InterfaceFilter filter = filters.InterfaceFilter
filter_form = forms.InterfaceFilterForm filter_form = forms.InterfaceFilterForm
table = tables.InterfaceListTable table = tables.InterfaceListTable