3 from forum.modules import decorate
5 from django.template.defaultfilters import slugify
6 from django.utils.safestring import mark_safe
7 from django.utils.http import urlquote_plus
9 slug_re = re.compile(r'\w+', re.UNICODE)
12 def imp_slugify(origin, value):
13 if settings.ALLOW_UNICODE_IN_SLUGS:
15 bits = slug_re.findall(value.lower())
16 return mark_safe("-".join(bits))
21 from forum import settings