From 3c1ed1d336c847ed35934b3169632455505f4acb Mon Sep 17 00:00:00 2001 From: Pavel Kulikov Date: Sat, 11 Mar 2017 10:11:44 +0300 Subject: [PATCH] [1.11.x] Fixed #27918 -- Documented ChoiceWidget.option_template_name Backport of 0d83052e52ddfe99c214be7ffca348a3c8feaef5 from master --- docs/ref/forms/widgets.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index f0301c1eee..b5d4fc3d5d 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -621,6 +621,14 @@ These widgets make use of the HTML elements ``input`` and ``textarea``. Selector and checkbox widgets ----------------------------- +These widgets make use of the HTML elements ````, and ````. + +Widgets that render multiple choices have an ``option_template_name`` attribute +that specifies the template used to render each choice. For example, for the +:class:`Select` widget, ``select_option.html`` renders the ``