summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index 7f68f6983c..a63297b5c4 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -613,7 +613,7 @@ class ChoiceWidget(Widget):
option_attrs['id'] = self.id_for_label(option_attrs['id'], index)
return {
'name': name,
- 'value': value,
+ 'value': force_text(value),
'label': label,
'selected': selected,
'index': index,