This commit is contained in:
Stephan Telling 2017-05-23 23:15:31 +02:00
parent 903b214d86
commit f2ad740ca2
No known key found for this signature in database
GPG key ID: D4892289F36ADA9B
4 changed files with 1 additions and 11 deletions

View file

@ -63,7 +63,6 @@
<strong>Total</strong> <strong>Total</strong>
<td> <td>
{{ order.total|currency }}<br /> {{ order.total|currency }}<br />
(~{{ order.total|approxeur }})
</table> </table>

View file

@ -21,7 +21,6 @@
<h3> <h3>
<small>Price</small><br /> <small>Price</small><br />
{{ product.price|currency }}<br /> {{ product.price|currency }}<br />
(~{{ product.price|approxeur }})
</h3> </h3>
<hr /> <hr />

View file

@ -57,7 +57,7 @@ Shop | {{ block.super }}
</td> </td>
<td> <td>
<div class="pull-right"> <div class="pull-right">
{{ product.price|currency }} (~{{ product.price|approxeur }}) {{ product.price|currency }}
</div> </div>
</td> </td>
</tr> </tr>

View file

@ -13,14 +13,6 @@ def currency(value):
return False return False
@register.filter
def approxeur(value):
try:
return "{0:.2f} EUR".format(value / Decimal(7.5))
except ValueError:
return False
@register.filter() @register.filter()
def truefalseicon(value): def truefalseicon(value):
if value: if value: