template tag: fix as_producer to consider slug

This commit is contained in:
Frédéric Péters 2018-09-11 19:43:15 +02:00
parent aaab4ddc16
commit 4fd7e8d11f
1 changed files with 2 additions and 0 deletions

View File

@ -474,6 +474,8 @@ def as_producer(slug):
if slug.startswith('_'):
producer = slug.split('_')[1].replace('hobo-', '')
else:
producer = slug
if slug == 'eservices':
# handle collectivity sites, they are individually named