allow dashes in producer classes (for vaulx-en-velin)

This commit is contained in:
Frédéric Péters 2018-09-11 19:15:45 +02:00
parent a581d869f9
commit 2d63f1b1db
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ def as_producer(slug):
'label': settings.TEMPLATE_VARS.get('gnm_commune_name')}
try:
producer = re.search(r'(^|\W)producer-(\w*)(\W|$)', producer).group(2).strip()
producer = re.search(r'(^|\W)producer-([\w-]*)(\W|$)', producer).group(2).strip()
except AttributeError:
pass