Navigation Menu

Skip to content

Commit

Permalink
[1.4.x] Fixed #19812 - Removed a duplicate phrase in the widget docs.
Browse files Browse the repository at this point in the history
Thanks diegueus9 for the report and itsallvoodoo for the draft patch.

Backport of 7a80904 from master
  • Loading branch information
timgraham committed Feb 16, 2013
1 parent 3d63889 commit 83e512f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions docs/ref/forms/widgets.txt
Expand Up @@ -278,15 +278,10 @@ foundation for custom widgets.
* A single value (e.g., a string) that is the "compressed" representation
of a ``list`` of values.

If `value` is a list, output of :meth:`~MultiWidget.render` will be a
concatenation of rendered child widgets. If `value` is not a list, it
will be first processed by the method :meth:`~MultiWidget.decompress()`
to create the list and then processed as above.

In the second case -- i.e., if the value is *not* a list --
``render()`` will first decompress the value into a ``list`` before
rendering it. It does so by calling the ``decompress()`` method, which
:class:`MultiWidget`'s subclasses must implement (see above).
If ``value`` is a list, the output of :meth:`~MultiWidget.render` will
be a concatenation of rendered child widgets. If ``value`` is not a
list, it will first be processed by the method
:meth:`~MultiWidget.decompress()` to create the list and then rendered.

When ``render()`` executes its HTML rendering, each value in the list
is rendered with the corresponding widget -- the first value is
Expand Down

0 comments on commit 83e512f

Please sign in to comment.