Fixed #23676 -- Rearranged sentence; "by default" applies only to max length
This commit is contained in:
parent
8d6e1afe0b
commit
c1b9f99a81
|
@ -672,8 +672,8 @@ Also note that even an uploaded HTML file, since it can be executed by the
|
||||||
browser (though not by the server), can pose security threats that are
|
browser (though not by the server), can pose security threats that are
|
||||||
equivalent to XSS or CSRF attacks.
|
equivalent to XSS or CSRF attacks.
|
||||||
|
|
||||||
By default, :class:`FileField` instances are
|
:class:`FileField` instances are created in your database as ``varchar``
|
||||||
created as ``varchar(100)`` columns in your database. As with other fields, you
|
columns with a default max length of 100 characters. As with other fields, you
|
||||||
can change the maximum length using the :attr:`~CharField.max_length` argument.
|
can change the maximum length using the :attr:`~CharField.max_length` argument.
|
||||||
|
|
||||||
FileField and FieldFile
|
FileField and FieldFile
|
||||||
|
@ -799,8 +799,8 @@ base filename, not the full path. So, this example::
|
||||||
because the :attr:`~FilePathField.match` applies to the base filename
|
because the :attr:`~FilePathField.match` applies to the base filename
|
||||||
(``foo.png`` and ``bar.png``).
|
(``foo.png`` and ``bar.png``).
|
||||||
|
|
||||||
By default, :class:`FilePathField` instances are
|
:class:`FilePathField` instances are created in your database as ``varchar``
|
||||||
created as ``varchar(100)`` columns in your database. As with other fields, you
|
columns with a default max length of 100 characters. As with other fields, you
|
||||||
can change the maximum length using the :attr:`~CharField.max_length` argument.
|
can change the maximum length using the :attr:`~CharField.max_length` argument.
|
||||||
|
|
||||||
``FloatField``
|
``FloatField``
|
||||||
|
@ -851,9 +851,9 @@ Requires the `Pillow`_ library.
|
||||||
|
|
||||||
.. _Pillow: http://pillow.readthedocs.org/en/latest/
|
.. _Pillow: http://pillow.readthedocs.org/en/latest/
|
||||||
|
|
||||||
By default, :class:`ImageField` instances are created as ``varchar(100)``
|
:class:`ImageField` instances are created in your database as ``varchar``
|
||||||
columns in your database. As with other fields, you can change the maximum
|
columns with a default max length of 100 characters. As with other fields, you
|
||||||
length using the :attr:`~CharField.max_length` argument.
|
can change the maximum length using the :attr:`~CharField.max_length` argument.
|
||||||
|
|
||||||
The default form widget for this field is a
|
The default form widget for this field is a
|
||||||
:class:`~django.forms.ClearableFileInput`.
|
:class:`~django.forms.ClearableFileInput`.
|
||||||
|
|
Loading…
Reference in New Issue