Skip to content
Snippets Groups Projects
Commit 6b41875c authored by Carlos Vega's avatar Carlos Vega
Browse files

issues with multiple files. needs revision. See issue #528

parent 39509f96
No related branches found
No related tags found
1 merge request!445Support for Python 3.11
......@@ -10,7 +10,7 @@ logger = logging.getLogger(__name__)
class SecuredFileWidget(forms.FileInput):
"""A FileField Widget that shows secure file link"""
allow_multiple_selected = True
allow_multiple_selected = False
def __init__(self, attrs=None):
if attrs is None:
......@@ -24,4 +24,4 @@ class SecuredFileWidget(forms.FileInput):
out = '<a href="{}">{}</a><br />{} '
output.append(out.format(url, _('Download'), _('Change:')))
output.append(super().render(name, value, attrs, renderer=renderer))
return mark_safe(''.join(output))
return mark_safe(''.join(output))
\ No newline at end of file
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