Ticket #3852: selectdatewidget_dashes.diff
File selectdatewidget_dashes.diff, 949 bytes (added by , 17 years ago) |
---|
-
newforms/extras/widgets.py
40 40 41 41 month_choices = MONTHS.items() 42 42 month_choices.sort() 43 month_choices = [("","---------")] + month_choices 43 44 select_html = Select(choices=month_choices).render(self.month_field % name, month_val) 44 45 output.append(select_html) 45 46 46 47 day_choices = [(i, i) for i in range(1, 32)] 48 day_choices = [("","--")] + day_choices 47 49 select_html = Select(choices=day_choices).render(self.day_field % name, day_val) 48 50 output.append(select_html) 49 51 50 52 year_choices = [(i, i) for i in self.years] 53 year_choices = [("","----")] + year_choices 51 54 select_html = Select(choices=year_choices).render(self.year_field % name, year_val) 52 55 output.append(select_html) 53 56