web_AI-5/django/didgeridoo/currencies/templatetags/customfilters.py

13 lines
261 B
Python

from django import template
register = template.Library()
@register.filter()
def boldcoffee(value):
# currency_of_customer = request.session['currency']
return '%s !!gefiltert!!' % value
# excample filter: {{ article.price_in_chf|boldcoffee }}