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:27:35 -0500 |
| commit | e19506d14ef87b11906de3d3e860470479924617 (patch) | |
| tree | 62453e43870bc7c96a85ccd869dfbbca27ec68da | |
| parent | c0c77955629b27869ba78b91e1cb9b057860a3fc (diff) | |
[1.5.x] Fixed #21507 -- Corrected default widget information for FileField
Backport of 70e61310d6 from master
| -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 41c55075fe..8de8f7a61e 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -550,7 +550,8 @@ Also has one optional argument: Optional. 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: @@ -798,6 +799,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`` ---------------- |
