From 7823fa05efea142d45210f42e0edae162196abca Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Fri, 25 Feb 2022 14:19:50 -0500 Subject: [PATCH] Fix changelog table column ordering --- netbox/extras/tables.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/netbox/extras/tables.py b/netbox/extras/tables.py index c3b9aff23..15dd0400e 100644 --- a/netbox/extras/tables.py +++ b/netbox/extras/tables.py @@ -189,9 +189,8 @@ class ConfigContextTable(NetBoxTable): class Meta(NetBoxTable.Meta): model = ConfigContext fields = ( - 'pk', 'id', 'name', 'weight', 'is_active', 'description', 'regions', 'sites', 'roles', - 'platforms', 'cluster_types', 'cluster_groups', 'clusters', 'tenant_groups', 'tenants', 'created', - 'last_updated', + 'pk', 'id', 'name', 'weight', 'is_active', 'description', 'regions', 'sites', 'roles', 'platforms', + 'cluster_types', 'cluster_groups', 'clusters', 'tenant_groups', 'tenants', 'created', 'last_updated', ) default_columns = ('pk', 'name', 'weight', 'is_active', 'description') @@ -225,7 +224,10 @@ class ObjectChangeTable(NetBoxTable): class Meta(NetBoxTable.Meta): model = ObjectChange - fields = ('id', 'time', 'user_name', 'full_name', 'action', 'changed_object_type', 'object_repr', 'request_id') + fields = ( + 'pk', 'id', 'time', 'user_name', 'full_name', 'action', 'changed_object_type', 'object_repr', 'request_id', + 'actions', + ) class ObjectJournalTable(NetBoxTable): @@ -260,8 +262,8 @@ class JournalEntryTable(ObjectJournalTable): class Meta(NetBoxTable.Meta): model = JournalEntry fields = ( - 'pk', 'id', 'created', 'created_by', 'assigned_object_type', 'assigned_object', 'kind', - 'comments', 'actions' + 'pk', 'id', 'created', 'created_by', 'assigned_object_type', 'assigned_object', 'kind', 'comments', + 'actions', ) default_columns = ( 'pk', 'created', 'created_by', 'assigned_object_type', 'assigned_object', 'kind', 'comments'