Kaydet (Commit) 70e61310 authored tarafından Ludwik Trammer's avatar Ludwik Trammer Kaydeden (comit) Tim Graham

Fixed #21507 -- Corrected default widget information for FileField

üst de220fb8
...@@ -596,7 +596,8 @@ Has two optional arguments: ...@@ -596,7 +596,8 @@ Has two optional arguments:
A storage object, which handles the storage and retrieval of your A storage object, which handles the storage and retrieval of your
files. See :doc:`/topics/files` for details on how to provide this object. 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 Using a :class:`FileField` or an :class:`ImageField` (see below) in a model
takes a few steps: takes a few steps:
...@@ -839,6 +840,9 @@ By default, :class:`ImageField` instances are created as ``varchar(100)`` ...@@ -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 columns in your database. As with other fields, you can change the maximum
length using the :attr:`~CharField.max_length` argument. length using the :attr:`~CharField.max_length` argument.
The default form widget for this field is a
:class:`~django.forms.ClearableFileInput`.
``IntegerField`` ``IntegerField``
---------------- ----------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment