Skip to content
Snippets Groups Projects
Commit d0a4fe24 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

fixup! Totally rework how the multifile upload works

parent c57df85e
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,9 @@ class MultiFileField(FileField): ...@@ -59,6 +59,9 @@ class MultiFileField(FileField):
return initial return initial
new = [FileField().clean(file, initial) for file in files] new = [FileField().clean(file, initial) for file in files]
old = [file for i, file in enumerate(initial) if i not in cleared] if initial:
old = [file for i, file in enumerate(initial) if i not in cleared]
else:
old = []
return old + new return old + new
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