diff options
| author | Tim Graham <timograham@gmail.com> | 2017-12-27 12:23:44 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-12-27 12:24:07 -0500 |
| commit | 1b27374b0de49dd6afff80b730774bccc9551cc3 (patch) | |
| tree | 489580688286a39cc408d34345e359bf71a077fe /docs | |
| parent | 4e4619a2b8f79699fbdb2c4f1bc4db55f59af6e6 (diff) | |
[2.0.x] Fixed #28966 -- Doc'd that the uuid URL path converter requires dashes
Backport of 038ea4f8593618cf0f408f15f756f2145de0d40e from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/http/urls.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt index aff12410a3..a74eb8ce0a 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -127,9 +127,10 @@ The following path converters are available by default: plus the hyphen and underscore characters. For example, ``building-your-1st-django-site``. -* ``uuid`` - Matches a formatted UUID (letters must be lowercase). For example, - ``075194d3-6885-417e-a8a8-6c931e272f00``. Returns a :class:`~uuid.UUID` - instance. +* ``uuid`` - Matches a formatted UUID. To prevent multiple URLs from mapping to + the same page, dashes must be included and letters must be lowercase. For + example, ``075194d3-6885-417e-a8a8-6c931e272f00``. Returns a + :class:`~uuid.UUID` instance. * ``path`` - Matches any non-empty string, including the path separator, ``'/'``. This allows you to match against a complete URL path rather than |
