fix the way to use textarea rather than input with models.TextField

This commit is contained in:
Remi Paulmier 2014-12-22 18:05:07 +01:00
parent 201e7eaa4b
commit 6c5ff71278

View File

@ -80,7 +80,7 @@ def get_field_kwargs(field_name, model_field):
kwargs['decimal_places'] = decimal_places kwargs['decimal_places'] = decimal_places
if isinstance(model_field, models.TextField): 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 isinstance(model_field, models.AutoField) or not model_field.editable:
# If this field is read-only, then return early. # If this field is read-only, then return early.