mirror of
https://github.com/django/django.git
synced 2025-04-08 23:46:43 +00:00
[1.10.x] Fixed typo in django/forms/widgets.py comment.
Backport of 656654fb5b82fa8d18016399c7676f310bafcd1c from master
This commit is contained in:
parent
70d9effa02
commit
a2d2d455b6
@ -790,7 +790,7 @@ class RendererMixin(object):
|
||||
def id_for_label(self, id_):
|
||||
# Widgets using this RendererMixin are made of a collection of
|
||||
# subwidgets, each with their own <label>, and distinct ID.
|
||||
# The IDs are made distinct by y "_X" suffix, where X is the zero-based
|
||||
# The IDs are made distinct by a "_X" suffix, where X is the zero-based
|
||||
# index of the choice field. Thus, the label for the main widget should
|
||||
# reference the first subwidget, hence the "_0" suffix.
|
||||
if id_:
|
||||
|
Loading…
x
Reference in New Issue
Block a user