mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-05-03 03:05:10 +02:00
11 lines
192 B
Python
11 lines
192 B
Python
from django import template
|
|
|
|
register = template.Library()
|
|
|
|
|
|
@register.filter
|
|
def currency(value):
|
|
if isinstance(value, int | float):
|
|
return f"{value/100:.2f}€"
|
|
return value
|