Commit af906a75 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

ensure group_name is an str, and not a translated string, keep pattern instance

parent 6fcda825
......@@ -45,10 +45,13 @@ def tags_to_bootstrap(tag):
return tag
__group_name_to_id__pattern = re.compile('[\W_]+')
def group_name_to_id(group_name):
pattern = re.compile('[\W_]+')
return pattern.sub('', group_name)
return __group_name_to_id__pattern.sub('', str(group_name))
class IncludeIfExistsNode(template.Node):
Supports Markdown
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