diff options
author | David Smith <smithdc@gmail.com> | 2020-05-29 06:41:17 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-29 06:42:03 +0200 |
commit | 3111b434e76e68a0c1bdb0e3f0c599b249b173ad (patch) | |
tree | 99feb9638ef1f9ff7dbf081dd4e7081f5d39938e | |
parent | dde05e192c15158cd2ea918ce2ee7a2b9b6ceba6 (diff) | |
download | django-3111b434e76e68a0c1bdb0e3f0c599b249b173ad.tar.gz |
Corrected slugify()'s docstring.
-rw-r--r-- | django/utils/text.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/django/utils/text.py b/django/utils/text.py index fb5f6298c4..cb39110b83 100644 --- a/django/utils/text.py +++ b/django/utils/text.py @@ -393,9 +393,10 @@ def unescape_string_literal(s): @keep_lazy_text def slugify(value, allow_unicode=False): """ - Convert to ASCII if 'allow_unicode' is False. Convert spaces to hyphens. - Remove characters that aren't alphanumerics, underscores, or hyphens. - Convert to lowercase. Also strip leading and trailing whitespace. + Convert to ASCII if 'allow_unicode' is False. Convert spaces or repeated + dashes to single dashes. Remove characters that aren't alphanumerics, + underscores, or hyphens. Convert to lowercase. Also strip leading and + trailing whitespace. """ value = str(value) if allow_unicode: |