Переглянути джерело

Fixed typo in docs/topics/forms/modelforms.txt.

wrwrwr 10 роки тому
батько
коміт
a15aba66f2
1 змінених файлів з 3 додано та 4 видалено
  1. 3 4
      docs/topics/forms/modelforms.txt

+ 3 - 4
docs/topics/forms/modelforms.txt

@@ -485,10 +485,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