Skip to content
Snippets Groups Projects
Commit 5f1ae8ac authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Do not show Currently/Clear for fiel fileld widgets when no files.

parent dbaf2d7f
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