Updated cycles template tag for dj 1.10.x compatibility

This commit is contained in:
Marc Aymerich 2016-10-25 09:50:50 +00:00
parent a737ed68e7
commit b179b5f2d3
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class AdminFormSet(BaseModelFormSet):
{% endfor %}
</tr></thead>
{% endif %}
<tr class="{% cycle row1,row2 %}">
<tr class="{% cycle 'row1' 'row2' %}">
{% for field in form.visible_fields %}
<td>
{# Include the hidden fields in the form #}

View File

@ -65,7 +65,7 @@
{% endfor %}
</tr></thead>
{% endif %}
<tr class="{% cycle row1,row2 %}">
<tr class="{% cycle 'row1' 'row2' %}">
{% for field in form.visible_fields %}
<td>
{# Include the hidden fields in the form #}