mirror of https://github.com/django/django.git
[1.11.x] Replaced "not var is ..." with "is not" in attrs.html.
Backport of f0573aad4b
from master
This commit is contained in:
parent
9e9d0f8ef7
commit
706b30fc37
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
Loading…
Reference in New Issue