File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
{% if field.errors %}{{ field.errors }}{% endif %}
10
10
< p
11
11
{% if field.errors %} class ="error "{% endif %}
12
- {% ifequal field.name "honeypot" %} style="display:none; "{% endifequal %} >
12
+ {% if field.name == "honeypot " %} style ="display:none; "{% endif %} >
13
13
{{ field.label_tag }} {{ field }}
14
14
</ p >
15
15
{% endif %}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ <h1>{% trans "Preview your comment" %}</h1>
27
27
{% if field.errors %}{{ field.errors }}{% endif %}
28
28
< p
29
29
{% if field.errors %} class ="error "{% endif %}
30
- {% ifequal field.name "honeypot" %} style="display:none; "{% endifequal %} >
30
+ {% if field.name == "honeypot " %} style ="display:none; "{% endif %} >
31
31
{{ field.label_tag }} {{ field }}
32
32
</ p >
33
33
{% endif %}
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ creating a context variable. One can iterate over the ``form`` object to
89
89
get individual fields. This gives you fine-grain control over the form::
90
90
91
91
{% for field in form %}
92
- {% ifequal field.name "comment" %}
92
+ {% if field.name == "comment" %}
93
93
<!-- Customize the "comment" field, say, make CSS changes -->
94
94
...
95
95
{% endfor %}
You can’t perform that action at this time.
0 commit comments