allow dashes in producer classes (for vaulx-en-velin)
This commit is contained in:
parent
a581d869f9
commit
2d63f1b1db
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue