summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorLudwik Trammer <ludwik@gmail.com>2013-11-25 12:22:43 +0100
committerTim Graham <timograham@gmail.com>2013-11-25 08:27:27 -0500
commit593ec42ad1375d8644e3eb485566315f0187de99 (patch)
tree21bc5d20c773f1a4e253eda9a2f4b55fd80c8d30 /docs/ref/models
parentdf18cc632cd78d575f434310724034630cc84304 (diff)
[1.6.x] Fixed #21507 -- Corrected default widget information for FileField
Backport of 70e61310d6 from master
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/fields.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 655a69934e..9cd2ce5ca9 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -585,7 +585,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:
@@ -833,6 +834,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``
----------------