From 6f37e97c67cf6dd9f5d5b381be3fcef7758a7c6d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 12 Jul 2017 14:05:01 -0400 Subject: [PATCH] Fixes #1339: Fixed disappearing checkbox column under django-tables2 v1.7+ --- netbox/utilities/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/utilities/views.py b/netbox/utilities/views.py index 055f9fbba..3dec16e7a 100644 --- a/netbox/utilities/views.py +++ b/netbox/utilities/views.py @@ -123,7 +123,7 @@ class ObjectListView(View): # Construct the table based on the user's permissions table = self.table(self.queryset) if 'pk' in table.base_columns and (permissions['change'] or permissions['delete']): - table.base_columns['pk'].visible = True + table.columns.show('pk') # Apply the request context paginate = {