mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 12:06:53 -06:00
Exclude actions column from export
This commit is contained in:
parent
ededa69e4a
commit
1024adca72
@ -203,7 +203,7 @@ class ObjectListView(ObjectPermissionRequiredMixin, View):
|
|||||||
:param table: The Table instance to export
|
:param table: The Table instance to export
|
||||||
:param columns: A list of specific columns to include. If not specified, all columns will be exported.
|
:param columns: A list of specific columns to include. If not specified, all columns will be exported.
|
||||||
"""
|
"""
|
||||||
exclude_columns = {'pk'}
|
exclude_columns = {'pk', 'actions'}
|
||||||
if columns:
|
if columns:
|
||||||
all_columns = [col_name for col_name, _ in table.selected_columns + table.available_columns]
|
all_columns = [col_name for col_name, _ in table.selected_columns + table.available_columns]
|
||||||
exclude_columns.update({
|
exclude_columns.update({
|
||||||
|
Loading…
Reference in New Issue
Block a user