From e9c2155dd71c192ad4e61502199811af75b0d03f Mon Sep 17 00:00:00 2001 From: Daniel Sheppard Date: Thu, 10 Nov 2022 16:08:07 -0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jeremy Stretch --- netbox/dcim/tables/devices.py | 2 +- netbox/dcim/tests/test_filtersets.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/netbox/dcim/tables/devices.py b/netbox/dcim/tables/devices.py index e3195a54f..43a01db4a 100644 --- a/netbox/dcim/tables/devices.py +++ b/netbox/dcim/tables/devices.py @@ -923,5 +923,5 @@ class VirtualDeviceContextTable(TenancyColumnsMixin, NetBoxTable): 'primary_ip', 'primary_ip4', 'primary_ip6', 'comments', 'tags', 'created', 'last_updated', ) default_columns = ( - 'pk', 'name', 'identifier', 'tenant', 'primary_ip', + 'pk', 'name', 'identifier', 'status', 'tenant', 'primary_ip', ) diff --git a/netbox/dcim/tests/test_filtersets.py b/netbox/dcim/tests/test_filtersets.py index badef8d30..f3dff428c 100644 --- a/netbox/dcim/tests/test_filtersets.py +++ b/netbox/dcim/tests/test_filtersets.py @@ -3023,7 +3023,6 @@ class InterfaceTestCase(TestCase, ChangeLoggedFilterSetTests): devices = Device.objects.last() vdc = VirtualDeviceContext.objects.filter(device=devices, name='VDC 2') params = {'vdc_identifier': vdc.values_list('identifier', flat=True)} - print(params) self.assertEqual(self.filterset(params, self.queryset).qs.count(), 3)