Skip to content
Snippets Groups Projects
Commit 5c76f676 authored by Jonathan Seguin's avatar Jonathan Seguin
Browse files

Fix broken admin datafile view

parent d94b3c8e
No related branches found
No related tags found
1 merge request!27Resolve "Batch update file lab association / file annotations"
......@@ -11,7 +11,14 @@ $(function() {
dataSrc: 'data'
},
order: [[ 3, 'desc' ]],
columns: [
{ "data": "name" },
{ "data": "ext" },
{ "data": "size" },
{ "data": "upload_date" },
{ "data": "lab" },
{ "data": "action_buttons"}
],
columnDefs: [
{ "orderable": false, "targets": {{ is_pi|yesno:"6,5,5" }} }
]
......
......@@ -276,6 +276,8 @@ class AdminDataFilesView(StaffViewMixin, DataFilesView):
template_name = 'portal/secure/admin/datafile_list.html'
create_url = reverse_lazy('admin.datafile-annotate')
api_url = reverse_lazy('admin.datafile-json-list')
dt_struct = {'id': DataFilesView.dt_struct['id'],
'headers': DataFilesView.dt_struct['headers'][1:]}
class AdminDataFilesJSONListView(StaffViewMixin, DataFilesJSONListView):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment