feat: add contained, persistent calculator

This commit is contained in:
Herculino Trotta
2024-12-14 18:22:21 -03:00
parent 2993ead631
commit 86443ba197
7 changed files with 242 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
from django import template
from django.utils.formats import get_format
register = template.Library()
@register.simple_tag
def get_thousand_separator():
print(get_format("THOUSAND_SEPARATOR"))
return get_format("THOUSAND_SEPARATOR")
@register.simple_tag
def get_decimal_separator():
print(get_format("DECIMAL_SEPARATOR"))
return get_format("DECIMAL_SEPARATOR")