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

Merge branch 'master' into 88-enable-creation-of-datasets-from-the-my-files-table

parents 656d293d 8f95c838
Branches 162-rm-dependence-to-python2
No related tags found
1 merge request!49Resolve "Enable creation of Datasets from the "My Files" Table"
......@@ -104,7 +104,7 @@ class DataFilesJSONListView(LoginRequiredMixin, JSONListView):
'hash': '<span class="text-monospace">{}</span>'.format(o.hash[:8]),
'size': filters.filesizeformat(o.file.size),
'upload_date': timezone.localtime(o.upload_timestamp).strftime('%Y-%m-%d %H:%M:%S %Z'),
'lab': str(o.lab),
'lab': str(o.lab) if o.lab else '',
'datasets': datasets,
'action_buttons': render_to_string(
'portal/templates/portal/widgets/action_buttons.html',
......@@ -157,7 +157,7 @@ class SharedWithMeDataFilesJSONListView(DataFilesJSONListView):
'upload_date': timezone.localtime(o.upload_timestamp).strftime('%Y-%m-%d %H:%M:%S %Z'),
'datasets': datasets,
'uploaded_by': o.uploaded_by.fullname,
'lab': str(o.lab),
'lab': str(o.lab) if o.lab else '',
'action_buttons': render_to_string(
'portal/templates/portal/widgets/action_buttons.html',
{'buttons': [
......
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