From f2ad740ca22c93e44c840296cef25dc9705af410 Mon Sep 17 00:00:00 2001 From: Stephan Telling Date: Tue, 23 May 2017 23:15:31 +0200 Subject: [PATCH] fix #125 --- src/shop/templates/order_detail.html | 1 - src/shop/templates/product_detail.html | 1 - src/shop/templates/shop_index.html | 2 +- src/shop/templatetags/shop_tags.py | 8 -------- 4 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/shop/templates/order_detail.html b/src/shop/templates/order_detail.html index 72f2c925..77ed6ff9 100644 --- a/src/shop/templates/order_detail.html +++ b/src/shop/templates/order_detail.html @@ -63,7 +63,6 @@ Total {{ order.total|currency }}
- (~{{ order.total|approxeur }}) diff --git a/src/shop/templates/product_detail.html b/src/shop/templates/product_detail.html index 9274905f..488cce74 100644 --- a/src/shop/templates/product_detail.html +++ b/src/shop/templates/product_detail.html @@ -21,7 +21,6 @@

Price
{{ product.price|currency }}
- (~{{ product.price|approxeur }})


diff --git a/src/shop/templates/shop_index.html b/src/shop/templates/shop_index.html index 9ee0e1f0..1a3fb9fa 100644 --- a/src/shop/templates/shop_index.html +++ b/src/shop/templates/shop_index.html @@ -57,7 +57,7 @@ Shop | {{ block.super }}
- {{ product.price|currency }} (~{{ product.price|approxeur }}) + {{ product.price|currency }}
diff --git a/src/shop/templatetags/shop_tags.py b/src/shop/templatetags/shop_tags.py index 508a4f25..530445f5 100644 --- a/src/shop/templatetags/shop_tags.py +++ b/src/shop/templatetags/shop_tags.py @@ -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: