Fixed #22206 -- Passed models.TextField.max_length to forms.CharField.maxlength

This commit is contained in:
Chris Wilson 2014-03-04 14:12:13 +00:00 committed by Claude Paroz
parent ac699cdc17
commit 95c74b9d69
8 changed files with 37 additions and 8 deletions

View file

@ -968,6 +968,13 @@ databases supported by Django.
A large text field. The default form widget for this field is a
:class:`~django.forms.Textarea`.
.. versionchanged:: 1.7
If you specify a ``max_length`` attribute, it will be reflected in the
:class:`~django.forms.Textarea` widget of the auto-generated form field.
However it is not enforced at the model or database level. Use a
:class:`CharField` for that.
.. admonition:: MySQL users
If you are using this field with MySQLdb 1.2.1p2 and the ``utf8_bin``