Skip to content

Commit

Permalink
Removed unnecessary form fields iteration from cart.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrochh committed Nov 18, 2011
1 parent 9508e55 commit 7cfd457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shop/templates/shop/cart.html
Expand Up @@ -21,7 +21,7 @@ <h1>{% trans "Your shopping cart" %}</h1>

<tbody>
{% for form in formset %}
{% for field in form.visible_fields %}
{% with form.quantity as field %}
<tr>
<td>{{ form.instance.product.name }}</td>
<td>{{ form.instance.product.get_price }}</td>
Expand All @@ -38,7 +38,7 @@ <h1>{% trans "Your shopping cart" %}</h1>
</tr>
{% endfor %}
<tr><td colspan="2">&nbsp;</td><td>{% trans "Line Total" %}:</td><td>{{ form.instance.line_total }}</td></tr>
{% endfor %}
{% endwith %}
{% endfor %}
</tbody>

Expand Down

0 comments on commit 7cfd457

Please sign in to comment.