mirror of
https://github.com/django/django.git
synced 2024-11-29 22:56:46 +01:00
Corrected slugify()'s docstring.
This commit is contained in:
parent
dde05e192c
commit
3111b434e7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user