From 0fc5943c8eb405ab195bc772b2dc8eb8a3a150b0 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 30 Aug 2022 12:55:33 +0100 Subject: [PATCH] Add more fields to table --- core/static/js/column-shifter.js | 3 +++ core/templates/window-content/context_table.html | 2 +- core/views/ui/tables.py | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/static/js/column-shifter.js b/core/static/js/column-shifter.js index 0db50d4..6eae15c 100644 --- a/core/static/js/column-shifter.js +++ b/core/static/js/column-shifter.js @@ -58,6 +58,9 @@ $(document).ready(function(){ "mtype": "off", "hidden": "off", "filename": "off", + "file_md5": "off", + "file_ext": "off", + "file_size": "off", }, }; } else { diff --git a/core/templates/window-content/context_table.html b/core/templates/window-content/context_table.html index 16dded2..8e9cdff 100644 --- a/core/templates/window-content/context_table.html +++ b/core/templates/window-content/context_table.html @@ -106,7 +106,7 @@ diff --git a/core/views/ui/tables.py b/core/views/ui/tables.py index 7f92bec..8398fe2 100644 --- a/core/views/ui/tables.py +++ b/core/views/ui/tables.py @@ -68,6 +68,9 @@ class DrilldownTable(Table): tokens = Column() hidden = Column() filename = Column() + file_md5 = Column() + file_ext = Column() + file_size = Column() template_name = "ui/drilldown/table_results.html" paginate_by = settings.DRILLDOWN_RESULTS_PER_PAGE