diff options
| author | Swann <swann.bouviermuller@gmail.com> | 2022-01-06 15:34:31 -0500 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-06-03 12:19:47 +0200 |
| commit | d0863429a39dbc99a52a6d781006e7075c743d33 (patch) | |
| tree | 6ecd81afa8d7020c058542f97872890df5c83c26 /docs/ref/forms/widgets.txt | |
| parent | 286e7d076cfb7b4b0bdfc917de3020e6e89683f6 (diff) | |
Fixed documentation of Widget.id_for_label() empty return value.
Diffstat (limited to 'docs/ref/forms/widgets.txt')
| -rw-r--r-- | docs/ref/forms/widgets.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index e29a54c876..40c030669c 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -277,7 +277,8 @@ foundation for custom widgets. .. method:: id_for_label(id_) Returns the HTML ID attribute of this widget for use by a ``<label>``, - given the ID of the field. Returns ``None`` if an ID isn't available. + given the ID of the field. Returns an empty string if an ID isn't + available. This hook is necessary because some widgets have multiple HTML elements and, thus, multiple IDs. In that case, this method should |
