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

Merge pull request #542 from OpenTechFund/bugfix/build-correct-links--existing-files

Allow existing files on imported submissions to get correct url so th…
parents ca1297c1 65750f41
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,9 @@ class AccessFormData:
@classmethod
def stream_file(cls, file):
if 'path' in file:
file['filename'] = file['name']
file['name'] = file['path']
if isinstance(file, StreamFieldFile):
return file
if isinstance(file, 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