diff options
| author | Yuri Prezument | 2013-01-03 01:11:16 -0800 |
|---|---|---|
| committer | Yuri Prezument | 2013-01-03 01:11:16 -0800 |
| commit | ed9f20823b699fe02a5a806efc37f5393a8371d5 (patch) | |
| tree | d00b601f9aa2b848796d930f74949c55bbd8a392 /rest_framework/fields.py | |
| parent | 6da9cd5429b9f480a65d27b93c2938b927f72a5b (diff) | |
| parent | 097f4c6962330c0fd550a9c7ada8344472e0a443 (diff) | |
| download | django-rest-framework-ed9f20823b699fe02a5a806efc37f5393a8371d5.tar.bz2 | |
Merge pull request #545 from yprez/filefield-no-files_issue542
FileField validation with files=None
Diffstat (limited to 'rest_framework/fields.py')
| -rw-r--r-- | rest_framework/fields.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py index d8b82e5f..a022fe09 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -181,6 +181,7 @@ class WritableField(Field): try: if self._use_files: + files = files or {} native = files[field_name] else: native = data[field_name] |
