mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 17:59:11 -06:00
Fixes #1339: Fixed disappearing checkbox column under django-tables2 v1.7+
This commit is contained in:
parent
e54c74d972
commit
6f37e97c67
@ -123,7 +123,7 @@ class ObjectListView(View):
|
|||||||
# Construct the table based on the user's permissions
|
# Construct the table based on the user's permissions
|
||||||
table = self.table(self.queryset)
|
table = self.table(self.queryset)
|
||||||
if 'pk' in table.base_columns and (permissions['change'] or permissions['delete']):
|
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
|
# Apply the request context
|
||||||
paginate = {
|
paginate = {
|
||||||
|
Loading…
Reference in New Issue
Block a user