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

Handle empty single field field.

parent 3187b9d2
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