diff options
| author | Ludwik Trammer <ludwik@gmail.com> | 2013-11-25 12:22:43 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-11-25 08:26:10 -0500 |
| commit | 70e61310d690fab109c5298e41783db61306f831 (patch) | |
| tree | a1725676b8f962ae8ccf23baf7384f190183b957 /docs/ref | |
| parent | de220fb85ef0cc1451cdfaa2a29f5f0c9f798e98 (diff) | |
Fixed #21507 -- Corrected default widget information for FileField
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/fields.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 75f87d4d71..d56da87091 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -596,7 +596,8 @@ Has two optional arguments: A storage object, which handles the storage and retrieval of your files. See :doc:`/topics/files` for details on how to provide this object. -The default form widget for this field is a :class:`~django.forms.FileInput`. +The default form widget for this field is a +:class:`~django.forms.ClearableFileInput`. Using a :class:`FileField` or an :class:`ImageField` (see below) in a model takes a few steps: @@ -839,6 +840,9 @@ By default, :class:`ImageField` instances are created as ``varchar(100)`` columns in your database. As with other fields, you can change the maximum length using the :attr:`~CharField.max_length` argument. +The default form widget for this field is a +:class:`~django.forms.ClearableFileInput`. + ``IntegerField`` ---------------- |
