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

GH-1001: Don't attempt to serialize files if they have no info

parent 1b6d13ec
No related branches found
No related tags found
No related merge requests found
......@@ -298,7 +298,9 @@ class UploadableMediaBlock(OptionalFormFieldBlock):
def prepare_data(self, value, data, serialize):
if serialize:
return data.serialize()
if data:
return data.serialize()
return None
return data
......
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