summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-06-17 08:12:05 -0400
committerTim Graham <timograham@gmail.com>2017-06-17 17:16:08 -0400
commitf0ec88fb63f39db38ab027477167f9d7a7ea151c (patch)
tree9bd14b68fb3ec3aa21138b0c4fc2df1a24a80d83 /django/forms
parent49de4f15413a4f281e835e383a7b1aa202a3dd7e (diff)
[1.11.x] Fixed #28303 -- Prevented localization of attribute values in the DTL attrs.html widget template.
Backport of 3b050fd0d0b8dbf499bdb44ce12fa926298c0bd0 from master
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/templates/django/forms/widgets/attrs.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/templates/django/forms/widgets/attrs.html b/django/forms/templates/django/forms/widgets/attrs.html
index c8bba9f35c..7a5592afcb 100644
--- a/django/forms/templates/django/forms/widgets/attrs.html
+++ b/django/forms/templates/django/forms/widgets/attrs.html
@@ -1 +1 @@
-{% for name, value in widget.attrs.items %}{% if value is not False %} {{ name }}{% if value is not True %}="{{ value }}"{% endif %}{% endif %}{% endfor %} \ No newline at end of file
+{% for name, value in widget.attrs.items %}{% if value is not False %} {{ name }}{% if value is not True %}="{{ value|stringformat:'s' }}"{% endif %}{% endif %}{% endfor %} \ No newline at end of file