Ticket #4341: 4341-patch.txt

File 4341-patch.txt, 1.1 KB (added by Peter Reeves <oneofthemany1@…>, 17 years ago)

Patch generated using "diff -Naur"

Line 
1--- django/newforms/extras/widgets.py 2007-05-19 17:30:09.093750000 +0100
2+++ django/newforms/extras.patched/widgets.py 2007-05-20 03:34:46.906250000 +0100
3@@ -40,15 +40,15 @@
4
5 month_choices = MONTHS.items()
6 month_choices.sort()
7- select_html = Select(choices=month_choices).render(self.month_field % name, month_val)
8+ select_html = Select(choices=month_choices).render(self.month_field % name, month_val, attrs=self.attrs)
9 output.append(select_html)
10
11 day_choices = [(i, i) for i in range(1, 32)]
12- select_html = Select(choices=day_choices).render(self.day_field % name, day_val)
13+ select_html = Select(choices=day_choices).render(self.day_field % name, day_val, attrs=self.attrs)
14 output.append(select_html)
15
16 year_choices = [(i, i) for i in self.years]
17- select_html = Select(choices=year_choices).render(self.year_field % name, year_val)
18+ select_html = Select(choices=year_choices).render(self.year_field % name, year_val, attrs=self.attrs)
19 output.append(select_html)
20
21 return u'\n'.join(output)
Back to Top