Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #17493 -- Made `Widget.id_for_label()` consistently be an insta…

…nce method.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1cd18f4cfdaf5f4a4002e9c59e1146e5fa0d70d3 1 parent ad8ebb7
@jphalip jphalip authored
Showing with 0 additions and 5 deletions.
  1. +0 −1  django/forms/extras/widgets.py
  2. +0 −4 django/forms/widgets.py
View
1  django/forms/extras/widgets.py
@@ -101,7 +101,6 @@ def id_for_label(self, id_):
return '%s_%s' % (id_, first_select)
else:
return '%s_month' % id_
- id_for_label = classmethod(id_for_label)
def value_from_datadict(self, data, files, name):
y = data.get(self.year_field % name)
View
4 django/forms/widgets.py
@@ -234,7 +234,6 @@ def id_for_label(self, id_):
tags.
"""
return id_
- id_for_label = classmethod(id_for_label)
class Input(Widget):
"""
@@ -735,7 +734,6 @@ def id_for_label(self, id_):
if id_:
id_ += '_0'
return id_
- id_for_label = classmethod(id_for_label)
class CheckboxSelectMultiple(SelectMultiple):
def render(self, name, value, attrs=None, choices=()):
@@ -767,7 +765,6 @@ def id_for_label(self, id_):
if id_:
id_ += '_0'
return id_
- id_for_label = classmethod(id_for_label)
class MultiWidget(Widget):
"""
@@ -826,7 +823,6 @@ def id_for_label(self, id_):
if id_:
id_ += '_0'
return id_
- id_for_label = classmethod(id_for_label)
def value_from_datadict(self, data, files, name):
return [widget.value_from_datadict(data, files, name + '_%s' % i) for i, widget in enumerate(self.widgets)]
Please sign in to comment.
Something went wrong with that request. Please try again.