Commit f2625fc3 by Yuri Prezument

FileField validation - handle case when files=None, fixes #542

parent 1c8fccfd
...@@ -181,6 +181,7 @@ class WritableField(Field): ...@@ -181,6 +181,7 @@ class WritableField(Field):
try: try:
if self._use_files: if self._use_files:
files = files or {} # For the case when files==None
native = files[field_name] native = files[field_name]
else: else:
native = data[field_name] native = data[field_name]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment