diff -r 25e6c924d3a1 django/forms/extras/widgets.py
a
|
b
|
|
101 | 101 | return '%s_%s' % (id_, first_select) |
102 | 102 | else: |
103 | 103 | return '%s_month' % id_ |
104 | | id_for_label = classmethod(id_for_label) |
105 | 104 | |
106 | 105 | def value_from_datadict(self, data, files, name): |
107 | 106 | y = data.get(self.year_field % name) |
diff -r 25e6c924d3a1 django/forms/widgets.py
a
|
b
|
|
234 | 234 | tags. |
235 | 235 | """ |
236 | 236 | return id_ |
237 | | id_for_label = classmethod(id_for_label) |
238 | 237 | |
239 | 238 | class Input(Widget): |
240 | 239 | """ |
… |
… |
|
735 | 734 | if id_: |
736 | 735 | id_ += '_0' |
737 | 736 | return id_ |
738 | | id_for_label = classmethod(id_for_label) |
739 | 737 | |
740 | 738 | class CheckboxSelectMultiple(SelectMultiple): |
741 | 739 | def render(self, name, value, attrs=None, choices=()): |
… |
… |
|
767 | 765 | if id_: |
768 | 766 | id_ += '_0' |
769 | 767 | return id_ |
770 | | id_for_label = classmethod(id_for_label) |
771 | 768 | |
772 | 769 | class MultiWidget(Widget): |
773 | 770 | """ |
… |
… |
|
826 | 823 | if id_: |
827 | 824 | id_ += '_0' |
828 | 825 | return id_ |
829 | | id_for_label = classmethod(id_for_label) |
830 | 826 | |
831 | 827 | def value_from_datadict(self, data, files, name): |
832 | 828 | return [widget.value_from_datadict(data, files, name + '_%s' % i) for i, widget in enumerate(self.widgets)] |