def slugify(text):
    if django.VERSION[:2] < (1, 5):
        from django.template.defaultfilters import slugify as django_slugify
    else:
        from django.utils.text import slugify as django_slugify

    return django_slugify(force_text(unidecode(text)))
Slugify function that supports unicode symbols
dataset/ETHPy150Open hovel/pybbm/pybb/compat.py/slugify