Skip to content
Snippets Groups Projects
Unverified Commit 4e1a4fd5 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #689 from OpenTechFund/bugfix/673-dont-show-clear-if-no-files

Do not show Currently/Clear for file field widgets when no files.
parents 426f7621 5f1ae8ac
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,9 @@ class MultiFileInput(ClearableFileInput):
def is_initial(self, value):
is_initial = super().is_initial
if not value:
return False
try:
return all(
is_initial(file) for file in value
......
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