wagtail-longclaw/longclaw/configuration/context_processors.py

9 wiersze
240 B
Python

from longclaw.configuration.models import Configuration
def currency(request):
config = Configuration.for_request(request)
return {
'currency_html_code': config.currency_html_code,
'currency': config.currency
}