12 lines
204 B
Python
12 lines
204 B
Python
|
from django import template
|
||
|
|
||
|
|
||
|
register = template.Library()
|
||
|
|
||
|
|
||
|
@register.filter()
|
||
|
def boldcoffee(value):
|
||
|
return '%s !!gefiltert!!' % value
|
||
|
|
||
|
# excample filter: {{ article.price_in_chf|boldcoffee }}
|