Fixed typo in django/forms/widgets.py comment.

This commit is contained in:
Leila20 2016-11-06 11:55:33 +01:00 committed by Tim Graham
parent f46a838efc
commit 656654fb5b
1 changed files with 1 additions and 1 deletions

View File

@ -795,7 +795,7 @@ class RendererMixin(object):
def id_for_label(self, id_): def id_for_label(self, id_):
# Widgets using this RendererMixin are made of a collection of # Widgets using this RendererMixin are made of a collection of
# subwidgets, each with their own <label>, and distinct ID. # 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 # index of the choice field. Thus, the label for the main widget should
# reference the first subwidget, hence the "_0" suffix. # reference the first subwidget, hence the "_0" suffix.
if id_: if id_: