summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-06-17 08:12:05 -0400
committerGitHub <noreply@github.com>2017-06-17 08:12:05 -0400
commit3b050fd0d0b8dbf499bdb44ce12fa926298c0bd0 (patch)
tree221f107ffc5324bc3bec9a111d5d417df912ee2e /django/forms
parent2b09e4c88e96cb03b29f5a6b0e4838ab4271e631 (diff)
Fixed #28303 -- Prevented localization of attribute values in the DTL attrs.html widget template.
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