Replaced "not var is ..." with "is not" in attrs.html.

This commit is contained in:
Jon Dufresne 2017-01-23 10:14:00 -08:00 committed by Tim Graham
parent 248d54569e
commit f0573aad4b
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 %}