Skip to content

Commit ffe52f4

Browse files
committed
Make the usage of unicode slugify explicit
1 parent 2cc7d59 commit ffe52f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readthedocs/builds/version_slug.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
from django.db import models
2828
from django.utils.encoding import force_text
29-
from slugify import slugify
29+
from slugify import slugify as unicode_slugify
3030

3131

3232
def get_fields_with_model(cls):
@@ -100,7 +100,7 @@ def slugify(self, content):
100100
return ''
101101

102102
normalized = self._normalize(content)
103-
slugified = slugify(
103+
slugified = unicode_slugify(
104104
normalized,
105105
only_ascii=True,
106106
spaces=False,

0 commit comments

Comments
 (0)