fix #125
This commit is contained in:
parent
903b214d86
commit
f2ad740ca2
|
@ -63,7 +63,6 @@
|
|||
<strong>Total</strong>
|
||||
<td>
|
||||
{{ order.total|currency }}<br />
|
||||
(~{{ order.total|approxeur }})
|
||||
|
||||
</table>
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
<h3>
|
||||
<small>Price</small><br />
|
||||
{{ product.price|currency }}<br />
|
||||
(~{{ product.price|approxeur }})
|
||||
</h3>
|
||||
|
||||
<hr />
|
||||
|
|
|
@ -57,7 +57,7 @@ Shop | {{ block.super }}
|
|||
</td>
|
||||
<td>
|
||||
<div class="pull-right">
|
||||
{{ product.price|currency }} (~{{ product.price|approxeur }})
|
||||
{{ product.price|currency }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -13,14 +13,6 @@ def currency(value):
|
|||
return False
|
||||
|
||||
|
||||
@register.filter
|
||||
def approxeur(value):
|
||||
try:
|
||||
return "{0:.2f} EUR".format(value / Decimal(7.5))
|
||||
except ValueError:
|
||||
return False
|
||||
|
||||
|
||||
@register.filter()
|
||||
def truefalseicon(value):
|
||||
if value:
|
||||
|
|
Loading…
Reference in a new issue