1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #28303 -- Prevented localization of attribute values in the DTL attrs.html widget template.

This commit is contained in:
Tim Graham
2017-06-17 08:12:05 -04:00
committed by GitHub
parent 2b09e4c88e
commit 3b050fd0d0
3 changed files with 20 additions and 1 deletions

View File

@@ -1 +1 @@
{% for name, value in widget.attrs.items %}{% if value is not False %} {{ name }}{% if value is not True %}="{{ value }}"{% endif %}{% endif %}{% endfor %}
{% for name, value in widget.attrs.items %}{% if value is not False %} {{ name }}{% if value is not True %}="{{ value|stringformat:'s' }}"{% endif %}{% endif %}{% endfor %}