diff options
| author | wrwrwr <git@wr.waw.pl> | 2014-11-27 16:21:28 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-27 10:54:09 -0500 |
| commit | e3ea5d4dad95a95de1f41893475a423a5e5c08d5 (patch) | |
| tree | 2e68ce2c7981b60c40ac9c5e3a2c6958c8f9eda5 /docs | |
| parent | 8819f6f7c9ffb78a13ed3e19803d89b6637358c6 (diff) | |
[1.7.x] Fixed typo in docs/topics/forms/modelforms.txt.
Backport of a15aba66f2fc650f70a791fb7fa880cf85cb1229 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index bfee475b88..57934dfe90 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -487,10 +487,9 @@ To specify a custom widget for a field, use the ``widgets`` attribute of the inner ``Meta`` class. This should be a dictionary mapping field names to widget classes or instances. -For example, if you want the a ``CharField`` for the ``name`` -attribute of ``Author`` to be represented by a ``<textarea>`` instead -of its default ``<input type="text">``, you can override the field's -widget:: +For example, if you want the ``CharField`` for the ``name`` attribute of +``Author`` to be represented by a ``<textarea>`` instead of its default +``<input type="text">``, you can override the field's widget:: from django.forms import ModelForm, Textarea from myapp.models import Author |
