Skip to content

Commit 3111b43

Browse files
smithdc1felixxm
authored andcommitted
Corrected slugify()'s docstring.
1 parent dde05e1 commit 3111b43

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

django/utils/text.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,10 @@ def unescape_string_literal(s):
393393
@keep_lazy_text
394394
def slugify(value, allow_unicode=False):
395395
"""
396-
Convert to ASCII if 'allow_unicode' is False. Convert spaces to hyphens.
397-
Remove characters that aren't alphanumerics, underscores, or hyphens.
398-
Convert to lowercase. Also strip leading and trailing whitespace.
396+
Convert to ASCII if 'allow_unicode' is False. Convert spaces or repeated
397+
dashes to single dashes. Remove characters that aren't alphanumerics,
398+
underscores, or hyphens. Convert to lowercase. Also strip leading and
399+
trailing whitespace.
399400
"""
400401
value = str(value)
401402
if allow_unicode:

0 commit comments

Comments
 (0)