From eb63edf9aa9363b59edfef7e38fa393bad9d5f05 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 23 Sep 2024 13:24:38 -0400 Subject: [PATCH] Fixes #138: Fix the ID column of the change diffs table --- netbox_branching/tables/tables.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/netbox_branching/tables/tables.py b/netbox_branching/tables/tables.py index efdecd0..f1df9e6 100644 --- a/netbox_branching/tables/tables.py +++ b/netbox_branching/tables/tables.py @@ -83,9 +83,9 @@ def render_is_active(self, value): class ChangeDiffTable(NetBoxTable): - name = tables.Column( - verbose_name=_('Name'), - linkify=True + # TODO: Revert to the default "id" column when a detail view for ChangeDiff is implemented + id = tables.Column( + verbose_name=_('ID') ) branch = tables.Column( verbose_name=_('Branch'), @@ -122,8 +122,8 @@ class ChangeDiffTable(NetBoxTable): class Meta(NetBoxTable.Meta): model = ChangeDiff fields = ( - 'branch', 'object_type', 'object', 'action', 'conflicts', 'original_diff', 'modified_diff', 'current_diff', - 'last_updated', 'actions', + 'id', 'branch', 'object_type', 'object', 'action', 'conflicts', 'original_diff', 'modified_diff', + 'current_diff', 'last_updated', 'actions', ) default_columns = ('branch', 'object', 'action', 'conflicts', 'original_diff', 'modified_diff', 'current_diff')