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

Merge pull request #1013 from OpenTechFund/fix/handel-empty-single-field-field

Handle empty single field field.
parents 987e14f0 92f8c94f
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,8 @@ class AccessFormData: ...@@ -49,6 +49,8 @@ class AccessFormData:
@classmethod @classmethod
def stream_file(cls, file): def stream_file(cls, file):
if not file:
return []
if isinstance(file, StreamFieldFile): if isinstance(file, StreamFieldFile):
return file return file
if isinstance(file, 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