diff options
| author | Marko Tibold | 2012-11-14 00:09:39 +0100 |
|---|---|---|
| committer | Marko Tibold | 2012-11-14 00:09:39 +0100 |
| commit | 8cdbc0a33a69f0a170e92be47189f6006c147137 (patch) | |
| tree | 2f1c404dc02b8c19339315f1946e7325aa7b0175 /rest_framework/fields.py | |
| parent | 5443dd5f3c5f75cd1524eb26c6d5b53df3594f9b (diff) | |
| download | django-rest-framework-8cdbc0a33a69f0a170e92be47189f6006c147137.tar.bz2 | |
Properly render file inputs in the Browsable api.
Diffstat (limited to 'rest_framework/fields.py')
| -rw-r--r-- | rest_framework/fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 9cd84c0d..162d2271 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -908,7 +908,7 @@ class FloatField(WritableField): class FileField(WritableField): type_name = 'FileField' - + widget = widgets.FileInput default_error_messages = { 'invalid': _("No file was submitted. Check the encoding type on the form."), 'missing': _("No file was submitted."), |
