mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #23558 -- documented slugify limitations
This commit is contained in:
parent
c0eea4645b
commit
03467368db
4 changed files with 12 additions and 12 deletions
|
@ -2024,9 +2024,9 @@ If ``some_list`` is ``['a', 'b', 'c']``, the output will be ``['a', 'b']``.
|
|||
slugify
|
||||
^^^^^^^
|
||||
|
||||
Converts to lowercase, removes non-word characters (alphanumerics and
|
||||
underscores) and converts spaces to hyphens. Also strips leading and trailing
|
||||
whitespace.
|
||||
Converts to ASCII. Converts spaces to hyphens. Removes characters that aren't
|
||||
alphanumerics, underscores, or hyphens. Converts to lowercase. Also strips
|
||||
leading and trailing whitespace.
|
||||
|
||||
For example::
|
||||
|
||||
|
|
|
@ -842,9 +842,9 @@ appropriate entities.
|
|||
|
||||
.. function:: slugify
|
||||
|
||||
Converts to lowercase, removes non-word characters (alphanumerics and
|
||||
underscores) and converts spaces to hyphens. Also strips leading and
|
||||
trailing whitespace.
|
||||
Converts to ASCII. Converts spaces to hyphens. Removes characters that
|
||||
aren't alphanumerics, underscores, or hyphens. Converts to lowercase. Also
|
||||
strips leading and trailing whitespace.
|
||||
|
||||
For example::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue