mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed documentation of Widget.id_for_label() empty return value.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user