From c36d8b2256b0af2263c27193c942d04aa473fd27 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 6 Aug 2020 09:14:20 -0400 Subject: [PATCH] Fix default display of child count in prefix tables --- netbox/ipam/tables.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/netbox/ipam/tables.py b/netbox/ipam/tables.py index 37fa1a9eb..5a4e2c133 100644 --- a/netbox/ipam/tables.py +++ b/netbox/ipam/tables.py @@ -337,9 +337,9 @@ class PrefixTable(BaseTable): class Meta(BaseTable.Meta): model = Prefix fields = ( - 'pk', 'prefix', 'children', 'status', 'vrf', 'tenant', 'site', 'vlan', 'role', 'is_pool', 'description', + 'pk', 'prefix', 'status', 'children', 'vrf', 'tenant', 'site', 'vlan', 'role', 'is_pool', 'description', ) - default_columns = ('pk', 'prefix', 'children', 'status', 'vrf', 'tenant', 'site', 'vlan', 'role', 'description') + default_columns = ('pk', 'prefix', 'status', 'vrf', 'tenant', 'site', 'vlan', 'role', 'description') row_attrs = { 'class': lambda record: 'success' if not record.pk else '', } @@ -359,11 +359,11 @@ class PrefixDetailTable(PrefixTable): class Meta(PrefixTable.Meta): fields = ( - 'pk', 'prefix', 'status', 'vrf', 'utilization', 'tenant', 'site', 'vlan', 'role', 'is_pool', 'description', - 'tags', + 'pk', 'prefix', 'status', 'children', 'vrf', 'utilization', 'tenant', 'site', 'vlan', 'role', 'is_pool', + 'description', 'tags', ) default_columns = ( - 'pk', 'prefix', 'status', 'vrf', 'utilization', 'tenant', 'site', 'vlan', 'role', 'description', + 'pk', 'prefix', 'status', 'children', 'vrf', 'utilization', 'tenant', 'site', 'vlan', 'role', 'description', )