You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

utils.py 242B

12345678910
  1. from unidecode import unidecode
  2. from django.template import defaultfilters
  3. def slugify(value):
  4. """
  5. Slugify a string (even if it contains non-ASCII chars)
  6. """
  7. return defaultfilters.slugify(
  8. unidecode(unicode(value)))