Commit d99c5b1e authored by fred's avatar fred

don't include & in soma labels

somax would break itself on such labels :/
parent fd2e2a9a
{% load l10n %} {% load l10n nonstop %}
{% localize off %} {% localize off %}
<Palinsesto> <Palinsesto>
<Description color="#FF0000">{{ episode.emission.title }} - {{ episode.title }}</Description> <Description color="#FF0000">{{ episode.emission.title|somafix }} - {{ episode.title|somafix }}</Description>
<Priority>1</Priority> <Priority>1</Priority>
<Start>{{ start|date:"Y-m-d x H:i" }}</Start> <Start>{{ start|date:"Y-m-d x H:i" }}</Start>
......
...@@ -8,3 +8,7 @@ register = Library() ...@@ -8,3 +8,7 @@ register = Library()
@register.filter @register.filter
def is_already_in_soma(diffusion): def is_already_in_soma(diffusion):
return utils.is_already_in_soma(diffusion) return utils.is_already_in_soma(diffusion)
@register.filter
def somafix(value):
return value.replace('&', 'and')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment