Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #13269 -- Added clarifying import statement to widget override …

…docs. Thanks to mattrowbum for the report, and Gabriel Hurley for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e34ca2b1e214799b2b474dcc2a5f20e80a987d8d 1 parent 0cb2ae9
Russell Keith-Magee authored May 08, 2010

Showing 1 changed file with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. 9  docs/topics/forms/modelforms.txt
9  docs/topics/forms/modelforms.txt
@@ -379,9 +379,12 @@ To specify a custom widget for a field, use the ``widgets`` attribute of the
379 379
 inner ``Meta`` class. This should be a dictionary mapping field names to widget
380 380
 classes or instances.
381 381
 
382  
-For example, if you want the a ``CharField`` to be represented by a
383  
-``<textarea>`` instead of its default ``<input type="text">``, you can override
384  
-the field's widget::
  382
+For example, if you want the a ``CharField`` for the ``name``
  383
+attribute of ``Author`` to be represented by a ``<textarea>`` instead
  384
+of its default ``<input type="text">``, you can override the field's
  385
+widget::
  386
+
  387
+    from django.forms import ModelForm, TextArea
385 388
 
386 389
     class AuthorForm(ModelForm):
387 390
         class Meta:

0 notes on commit e34ca2b

Please sign in to comment.
Something went wrong with that request. Please try again.