diff options
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/widgets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py index f306abdec6..35904d3372 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -958,7 +958,7 @@ class SelectDateWidget(Widget): def get_context(self, name, value, attrs): context = super().get_context(name, value, attrs) date_context = {} - year_choices = [(i, i) for i in self.years] + year_choices = [(i, str(i)) for i in self.years] if not self.is_required: year_choices.insert(0, self.year_none_value) year_attrs = context['widget']['attrs'].copy() |
