Skip to content

Commit

Permalink
Updated cycles template tag for dj 1.10.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
glic3rinu committed Oct 25, 2016
1 parent a737ed6 commit b179b5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orchestra/admin/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def as_admin(self):
{% 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 #}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2 id="{{ app.grouper|lower}}">{{ app.grouper|lower|capfirst }}</h2>
{% 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 #}
Expand Down

0 comments on commit b179b5f

Please sign in to comment.