Bootstrap makes the need of the {% cycle %} tag obsolete, remove from templates.

This commit is contained in:
Roberto Rosario
2015-04-01 13:30:18 -04:00
parent 849d73223c
commit c44362b257
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
{% for field in form.hidden_fields %}
{{ field }}
{% endfor %}
<tr class="{% cycle 'odd' 'even2' %}">
<tr>
{% for field in form.visible_fields %}
<td title="{% if field.errors %}{% for error in field.errors %}{{ error }}{% if not forloop.last %} | {% endif %}{% endfor %}{% else %}{{ field.help_text }}{% endif %}">
{% if field.errors %}<div class="has-error">{% endif %}

View File

@@ -66,7 +66,7 @@
</tr>
{% endif %}
{% for object in object_list %}
<tr class="{% cycle 'odd' 'even2' %}">
<tr>
{% if multi_item_actions %}
<td>