diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2017-04-21 09:14:40 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-04-21 12:29:20 -0400 |
| commit | 1442e299839febf9599e98dff2e6bb6da24df0ac (patch) | |
| tree | 83196f85e0abb1d567cbc386714c3d5674fee789 /django | |
| parent | c9d933ba999ef0c3b37045335715d93e92ddb279 (diff) | |
[1.11.x] Fixed #28075 -- Prevented ChoiceWidget from localizing option values.
Backport of 581879a510e58841e5780a5d1fdb4995733d2036 from master
Diffstat (limited to 'django')
| -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 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, |
