[1.11.x] Replaced "not var is ..." with "is not" in attrs.html.

Backport of f0573aad4b from master
This commit is contained in:
Jon Dufresne 2017-01-23 10:14:00 -08:00 committed by Tim Graham
parent 9e9d0f8ef7
commit 706b30fc37
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
{% for name, value in widget.attrs.items() %}{% if value is not sameas False %} {{ name }}{% if not value is sameas True %}="{{ value }}"{% endif %}{% endif %}{% endfor %}
{% for name, value in widget.attrs.items() %}{% if value is not sameas False %} {{ name }}{% if value is not sameas True %}="{{ value }}"{% endif %}{% endif %}{% endfor %}

View File

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