diff options
| author | Tom Christie | 2014-12-24 14:44:32 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-12-24 14:44:32 +0000 | 
| commit | 9f9b9f89441d512f13178fc1d56e9a3cd0908dea (patch) | |
| tree | 7c80e361e8e33cba971e454645e4ea9b02c9be9c /rest_framework | |
| parent | e6041f9c3e34a5dc83ff2b574b7625ccbd93ed38 (diff) | |
| parent | b32ecdefbace063c5b9b465af608ac6404795dd4 (diff) | |
| download | django-rest-framework-9f9b9f89441d512f13178fc1d56e9a3cd0908dea.tar.bz2 | |
Merge pull request #2340 from shtouff/fix-htmlform-textarea
Use textarea input for 'models.TextField'.
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/utils/field_mapping.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/utils/field_mapping.py b/rest_framework/utils/field_mapping.py index fca97b4b..b16e9df0 100644 --- a/rest_framework/utils/field_mapping.py +++ b/rest_framework/utils/field_mapping.py @@ -80,7 +80,7 @@ def get_field_kwargs(field_name, model_field):          kwargs['decimal_places'] = decimal_places      if isinstance(model_field, models.TextField): -        kwargs['style'] = {'type': 'textarea'} +        kwargs['style'] = {'base_template': 'textarea.html'}      if isinstance(model_field, models.AutoField) or not model_field.editable:          # If this field is read-only, then return early. | 
