Skip to content

Commit

Permalink
fix: Show correct currency on dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
pta2002 committed May 22, 2017
1 parent f015ac9 commit 2aaced0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shop/templates/shop/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ <h2>My products</h2>
</div>
<div class="col-sm-10">
<a href="{% url 'shop:viewproduct' product.id %}" class="cart-product-name">{{ product.product_name }}</a><br>
PRICE: {{ product.price|floatformat }} OK <br>
EARNINGS: {{ product.get_earnings|floatformat }} OK<br>
PRICE: {{ product.price|floatformat }} {{ product.price_currency }} <br>
EARNINGS: {{ product.get_earnings|floatformat }} {{ product.price_currency }}<br>
SALES: {{ product.get_purchases.count }}
</div>
</div>
Expand Down

0 comments on commit 2aaced0

Please sign in to comment.