Commit 8620ffa5 authored by fred's avatar fred

fix slugification of new emissions

parent fcedd933
......@@ -11,6 +11,7 @@ from import DefaultStorage
from django.core.urlresolvers import reverse
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import force_text
from django.conf import settings
from django.template.loader import render_to_string
......@@ -23,7 +24,7 @@ from .widgets import DateTimeWidget, DateWidget
def slugify(s):
s = unicodedata.normalize('NFKD', s).encode('ascii', 'ignore').lower()
return re.sub(r'\W+', '-', s)
return re.sub(r'\W+', '-', force_text(s))
class DayAndHourWidget(forms.MultiWidget):
Markdown is supported
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