Ticket #17493: 17493.diff

File 17493.diff, 1.4 KB (added by Julien Phalip, 13 years ago)
  • django/forms/extras/widgets.py

    diff -r 25e6c924d3a1 django/forms/extras/widgets.py
    a b  
    101101            return '%s_%s' % (id_, first_select)
    102102        else:
    103103            return '%s_month' % id_
    104     id_for_label = classmethod(id_for_label)
    105104
    106105    def value_from_datadict(self, data, files, name):
    107106        y = data.get(self.year_field % name)
  • django/forms/widgets.py

    diff -r 25e6c924d3a1 django/forms/widgets.py
    a b  
    234234        tags.
    235235        """
    236236        return id_
    237     id_for_label = classmethod(id_for_label)
    238237
    239238class Input(Widget):
    240239    """
     
    735734        if id_:
    736735            id_ += '_0'
    737736        return id_
    738     id_for_label = classmethod(id_for_label)
    739737
    740738class CheckboxSelectMultiple(SelectMultiple):
    741739    def render(self, name, value, attrs=None, choices=()):
     
    767765        if id_:
    768766            id_ += '_0'
    769767        return id_
    770     id_for_label = classmethod(id_for_label)
    771768
    772769class MultiWidget(Widget):
    773770    """
     
    826823        if id_:
    827824            id_ += '_0'
    828825        return id_
    829     id_for_label = classmethod(id_for_label)
    830826
    831827    def value_from_datadict(self, data, files, name):
    832828        return [widget.value_from_datadict(data, files, name + '_%s' % i) for i, widget in enumerate(self.widgets)]
Back to Top