Commit 2faf5f63 authored by fred's avatar fred

fix link to online news

parent 9493cf92
......@@ -9,7 +9,7 @@ register = Library()
@register.filter
def online_url(object):
if isinstance(object, NewsItem):
return settings.WEBSITE_BASE_URL + 'news/' + object.slug
return settings.WEBSITE_BASE_URL + 'actus/' + object.slug
if isinstance(object, Emission):
return settings.WEBSITE_BASE_URL + 'emissions/' + object.slug + '/'
if isinstance(object, Episode):
......
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