manager: decode base64 content as ASCII (#44802)
This commit is contained in:
parent
d489395742
commit
a67989da21
|
@ -694,7 +694,7 @@ class UserImportsView(MediaMixin, PermissionMixin, FormView):
|
|||
})
|
||||
ctx['help_columns'] = help_columns
|
||||
example_data = u','.join(column['name'] + (' key' if column['key'] else '') for column in help_columns) + '\n'
|
||||
example_url = 'data:text/csv;base64,%s' % base64.b64encode(example_data.encode('utf-8'))
|
||||
example_url = 'data:text/csv;base64,%s' % base64.b64encode(example_data.encode('utf-8')).decode('ascii')
|
||||
ctx['form'].fields['import_file'].help_text = format_html(
|
||||
_('{0}. {1} <a download="{3}" href="{2}">{3}</a>'),
|
||||
ctx['form'].fields['import_file'].help_text,
|
||||
|
|
Loading…
Reference in New Issue